BGE Rasterizer Cleanup: The Blenderplayer now loads the monospace font so it can properly draw the framerate and profile display.
This commit is contained in:
@@ -1498,18 +1498,14 @@ void RAS_OpenGLRasterizer::RenderText2D(RAS_TEXT_RENDER_MODE mode,
|
||||
BLF_size(blf_mono_font, 11, 72);
|
||||
BLF_position(blf_mono_font, (float)xco+1, (float)(height-yco-1), 0.0f);
|
||||
BLF_draw(blf_mono_font, (char *)text, 65535);/* XXX, use real len */
|
||||
|
||||
glColor3ub(255, 255, 255);
|
||||
BLF_position(blf_mono_font, (float)xco, (float)(height-yco), 0.0f);
|
||||
BLF_draw(blf_mono_font, (char *)text, 65535);
|
||||
} else {
|
||||
/* the actual drawing */
|
||||
glColor3ub(255, 255, 255);
|
||||
BLF_size(blf_mono_font, 11, 72);
|
||||
BLF_position(blf_mono_font, (float)xco, (float)(height-yco), 0.0f);
|
||||
BLF_draw(blf_mono_font, (char *)text, 65535); /* XXX, use real len */
|
||||
}
|
||||
|
||||
/* the actual drawing */
|
||||
glColor3ub(255, 255, 255);
|
||||
BLF_size(blf_mono_font, 11, 72);
|
||||
BLF_position(blf_mono_font, (float)xco, (float)(height-yco), 0.0f);
|
||||
BLF_draw(blf_mono_font, (char *)text, 65535); /* XXX, use real len */
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glPopMatrix();
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
Reference in New Issue
Block a user