To do both, ive got a nested loop (probably a bad thing).
Code: Select all
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
//Run the game, simple draw/update loop.
game->Run();
}
Code: Select all
void Game::Run()
{
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
}
Code: Select all
while(device->run())
Any suggestions on what i can do to stop it from crashing[/code]