diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -223,10 +223,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine } void resize(int width, int height); - - void initGL(bool multisample) { - glClearColor(0.0, 0.0, 0.0, 1.0);//glClearColor(1.0, 0.85, 0.06, 1.0); - glClearDepth(1.0); + delta = GetTickCount()-ticks; if(delta < MIN_FRAME_DELTA) { @@ -236,7 +233,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine ticks += delta; - static DisplayClass render(); + static DisplayClass render(5, 5, 5); render.renderScene(delta); SwapBuffers(hDC); } |