diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-01-05 04:34:33 +0300 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-01-05 04:34:33 +0300 |
commit | a9f808355141b2837de9b0e89ee43a0af335c05f (patch) | |
tree | c1d6bda995d72d3269999679cfaa19f32d3b1582 /source/gameengine/GamePlayer | |
parent | 09852b9a58e49cf1c33af59a88d5dac9bbfc8697 (diff) |
Adding overhead drawing (frame rate, profile, debug props) capabilities back to the Blenderplayer by replacing commented out BMF_* functions with BLF_* equivalents.
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_RenderTools.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp index 51cd323a375..b5b6851bc52 100644 --- a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp @@ -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); |