summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-21 19:53:33 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-21 19:53:33 +0200
commit85dba966adf31020925852daf6f8f8c1b3906435 (patch)
tree1fd7bfa183612f49d2aea06de76d8b02cec9a660
parentf53a595f885954b4afe3f9247ae5afcd3d1388de (diff)
Changed from FTPixmapFont to FTTextureFont.
-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);