Adding overhead drawing (frame rate, profile, debug props) capabilities back to the...
authorMitchell Stokes <mogurijin@gmail.com>
Wed, 5 Jan 2011 01:34:33 +0000 (01:34 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Wed, 5 Jan 2011 01:34:33 +0000 (01:34 +0000)
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp

index 51cd323a375b2cebc321f00ef96180f1065631d8..b5b6851bc5256ff8a9dccf7adf9d875b658701ab 100644 (file)
@@ -347,13 +347,11 @@ void GPC_RenderTools::RenderText2D(RAS_TEXT_RENDER_MODE mode,
        if (mode == RAS_IRenderTools::RAS_TEXT_PADDED)
        {
                glColor3ub(0, 0, 0);
-               glRasterPos2s(xco+1, height-yco-1);
-               // XXX BMF_DrawString(m_font, s);
+               BLF_draw_default(xco+1, height-yco-1, 0.f, text, strlen(text));
        }
 
        glColor3ub(255, 255, 255);
-       glRasterPos2s(xco, height-yco);
-       // XXX BMF_DrawString(m_font, s);
+       BLF_draw_default(xco, height-yco, 0.f, text, strlen(text));
 
        // Restore view settings
        glMatrixMode(GL_PROJECTION);