diff options
Diffstat (limited to 'scene.cpp')
-rw-r--r-- | scene.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -7,6 +7,7 @@ #include "gl.h" +#include <unistd.h> #include <cmath> #include <queue> @@ -52,8 +53,8 @@ Scene::Scene() { terrain = new Terrain(); /* load font */ - font = new FTTextureFont("fonts/VeraMono.ttf"); - font->FaceSize(10); + //font = new FTTextureFont("fonts/VeraMono.ttf"); + //font->FaceSize(10); GUI::init(); } @@ -63,7 +64,7 @@ Scene::~Scene() { delete tool; if(terrain) delete terrain; - delete font; + //delete font; } void Scene::lookat() { @@ -447,7 +448,7 @@ void Scene::render() { glPopMatrix(); video::ortho(); - float height = font->LineHeight(); + /*float height = font->LineHeight(); glColor3f(1, 1, 1); glTranslatef(0, video::height-height, 0); font->Render((boost::format("chunks: %d gravity: %d steps: %d") @@ -463,7 +464,7 @@ void Scene::render() { if(tool) { glTranslatef(0, -height, 0); font->Render((boost::format("Tool: %s") % tool->get_name()).str().c_str()); - } + }*/ /*if(selected) { glTranslatef(0, height, 0); //font->Render((boost::format("(%s %s %s %s)") % selected->a->str() % selected->b->str() % selected->c->str() % selected->d->str()).str().c_str()); |