sealfin
2002.07.01, 06:00 AM
ok, I've currently got this code :
[...]
RunApplicationEventLoop();
// main loop starts here.
while(!quit)
{
statementX();
}
[...]
the problem is that statementX(); will never be executed til QuitApplicationEventLoop(); has been executed; is there an easier way to overcome this, other than to place the main loop statements into an event handler and call it every frame based on a timer?
[...]
RunApplicationEventLoop();
// main loop starts here.
while(!quit)
{
statementX();
}
[...]
the problem is that statementX(); will never be executed til QuitApplicationEventLoop(); has been executed; is there an easier way to overcome this, other than to place the main loop statements into an event handler and call it every frame based on a timer?