first ticks for win32

This commit is contained in:
Eduardo Bart 2011-04-02 14:32:54 -03:00
parent 5254b8d230
commit e281853a0c
2 changed files with 5 additions and 2 deletions

View File

@ -76,12 +76,12 @@ void Engine::run()
lastFrameTicks = ticks;
// render only when visible
if(Platform::isWindowVisible()) {
//if(Platform::isWindowVisible()) {
render();
// swap buffers
Platform::swapBuffers();
}
//}
}
lastFrameTicks = 0;

View File

@ -62,6 +62,9 @@ void Platform::init(const char *appName)
if(!RegisterClassA(&wc))
fatal("Failed to register the window class.");
// force first tick
Platform::getTicks();
}
void Platform::terminate()