aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Belle-Isle <abelleisle@roadrunner.com>2015-09-08 18:26:43 -0400
committerAndy Belle-Isle <abelleisle@roadrunner.com>2015-09-08 18:27:01 -0400
commit2a0df74f8a73427b1fe2b96ec7840e7f39178569 (patch)
tree4d258c9213fc51145fb8b022ba923e191bde52e3 /src
parent7bd5f9dd60204fa7bfc9a1b5d6fa982be0bfe3ec (diff)
Updated stuff to fix bork
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
1 files changed, 3 insertions, 4 deletions
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();
}
/**************************