aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-05-06 22:10:34 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-05-06 22:10:34 -0400
commit70eced563f3ba4d98ed0a7952a81b69903ed1803 (patch)
tree66612356aeb22a4c2074cb19b30135db5cdd8722 /src/render.cpp
parentd6dac7e8336b435c2f335aa824df0aedd63074c6 (diff)
rendering improvements
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 935e609..5da74c8 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -86,7 +86,7 @@ void init(void)
+ reinterpret_cast<const char *>(glewGetErrorString(glewError)));
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); // anti-aliasing
- SDL_GL_SetSwapInterval(1); // v-sync
+ SDL_GL_SetSwapInterval(game::vsync); // v-sync
SDL_ShowCursor(SDL_DISABLE); // hide the cursor
glViewport(0, 0, game::SCREEN_WIDTH, game::SCREEN_HEIGHT); // pixel coordinates
glEnable(GL_BLEND); // alpha enabling
@@ -193,9 +193,8 @@ void render(const int& fps)
}
UISystem::render();
-
- //ui::drawFade();
ui::draw();
+ FontSystem::render();
WindowSystem::render();
}