Changed: Partially abstracted the windows version of OpenArena::Window CreateGLWindow and KillGLWindow are now part of the Window class. ResizeGLScene and InitGL are now callbacks. Direct calls to SwapBuffers and glXSwapBuffers have been replaced by a SwapBuffers method of Window.

~g2k
This commit is contained in:
2005-06-26 10:56:45 -04:00
parent 6e11904c95
commit 7aae80da7a
3 changed files with 251 additions and 184 deletions

View File

@@ -60,11 +60,8 @@ int DrawGLScene()
{
level.Render();
//Maybe this should be integrated into the Window class
if(g_Screen.doubleBuffered)
{
glXSwapBuffers(g_Screen.display, g_Screen.window);
}
g_Screen.SwapBuffers();
return true;
}