cosmetic text fix for ForkLiftDemo
This commit is contained in:
@@ -436,23 +436,28 @@ void ForkLiftDemo::renderme()
|
|||||||
m_shapeDrawer.drawOpenGL(m,&wheelShape,wheelColor,getDebugMode(),worldBoundsMin,worldBoundsMax);
|
m_shapeDrawer.drawOpenGL(m,&wheelShape,wheelColor,getDebugMode(),worldBoundsMin,worldBoundsMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int lineWidth=250;
|
||||||
|
int xStart = m_glutScreenWidth - lineWidth;
|
||||||
|
|
||||||
|
|
||||||
if((getDebugMode() & btIDebugDraw::DBG_NoHelpText)==0)
|
if((getDebugMode() & btIDebugDraw::DBG_NoHelpText)==0)
|
||||||
{
|
{
|
||||||
setOrthographicProjection();
|
setOrthographicProjection();
|
||||||
glDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
glColor3f(0, 0, 0);
|
glColor3f(0, 0, 0);
|
||||||
char buf[124];
|
char buf[124];
|
||||||
glRasterPos3f(400, 20, 0);
|
glRasterPos3f(xStart, 20, 0);
|
||||||
sprintf(buf,"SHIFT+Cursor Left/Right - rotate lift");
|
sprintf(buf,"SHIFT+Cursor Left/Right - rotate lift");
|
||||||
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
||||||
glRasterPos3f(400, 40, 0);
|
glRasterPos3f(xStart, 40, 0);
|
||||||
sprintf(buf,"SHIFT+Cursor UP/Down - move fork up/down");
|
sprintf(buf,"SHIFT+Cursor UP/Down - move fork up/down");
|
||||||
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
||||||
glRasterPos3f(400, 60, 0);
|
glRasterPos3f(xStart, 60, 0);
|
||||||
sprintf(buf,"F5 - toggle camera mode");
|
sprintf(buf,"F5 - toggle camera mode");
|
||||||
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
||||||
glRasterPos3f(400, 80, 0);
|
glRasterPos3f(xStart, 80, 0);
|
||||||
sprintf(buf,"Click inside windows for keyboard focus");
|
sprintf(buf,"Click inside this window for keyboard focus");
|
||||||
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user