From 2a0df74f8a73427b1fe2b96ec7840e7f39178569 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Tue, 8 Sep 2015 18:26:43 -0400 Subject: Updated stuff to fix bork --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 78163db..9ce98a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,7 @@ SDL_GLContext mainGLContext = NULL; bool gameRunning = true; UIClass ui; +Window win; int main(int argc,char **argv){ //runs start-up procedures @@ -38,12 +39,10 @@ int main(int argc,char **argv){ **** GAMELOOP **** **************************/ - glClearColor(1,1,1,0); + win.setupRender(); while(gameRunning){ - glClear(GL_COLOR_BUFFER_BIT); - SDL_GL_SwapWindow(window); - ui.handleEvents(); + win.render(); } /************************** -- cgit v1.2.3