Im having a small problem that i couldn't solve, so your help is appricieted. Here is a pseudo-code to understand what is happenning in my application:
Code: Select all
...
int X = 0;
{
While (device->run())
{
driver->beginScene(true, true,SColor(0,255,255,255));
while (X <= 1000)
{
device->run();
driver->beginScene(true, true,SColor(0,255,255,255));
X++;
printf( X ); ///Show X value
smgr->drawAll();
gui->drawAll();
driver->endScene();
}
smgr->drawAll();
gui->drawAll();
driver->endScene();
}
device->drop();
return false;
}
If I close the application when im in the first loop (when X >= 1001), the application ends sucessfully.
I dont know if its a real problem or simply a lack of C++ thecniques, but i tried a lot of things, and i searched everywhere and i couldn't find any solution.
Thx for helping.