summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/application.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/application.cpp b/engine/application.cpp
index 404afd5..ab66bf4 100644
--- a/engine/application.cpp
+++ b/engine/application.cpp
@@ -79,8 +79,8 @@ Application::~Application() {
void Application::run() {
paused = false;
- font = new FTPixmapFont("fonts/VeraMono.ttf");
- font->FaceSize(12);
+ font = new FTTextureFont("fonts/VeraMono.ttf");
+ font->FaceSize(20);
background = new TextureSDL("textures/background.png");
lasttick = SDL_GetTicks();
@@ -149,7 +149,7 @@ void Application::main_loop(unsigned int tick) {
frames++;
}
- glRasterPos2f(Config::fps_x, Config::fps_y);
+ glScalef(0.0005, 0.0005, 0.0005);
font->Render((boost::format("FPS: %.2f") % fps).str().c_str());
float v_x = Config::window_w * (Config::viewport_x + xo) / (1 + 2 * xo);