Adding overhead drawing (frame rate, profile, debug props) capabilities back to the Blenderplayer by replacing commented out BMF_* functions with BLF_* equivalents.

This commit is contained in:
Mitchell Stokes 2011-01-05 01:34:33 +00:00
parent 09852b9a58
commit a9f8083551

@ -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);