add 'NextScene' button and minor help in GUI

This commit is contained in:
erwin.coumans
2008-11-15 23:42:39 +00:00
parent 972d3be247
commit 21f03f2aed
2 changed files with 11 additions and 0 deletions

View File

@@ -113,6 +113,12 @@ void ResetScene()
demo->clientResetScene();
}
void NextScene()
{
testSelection++;
if(testSelection>23)
testSelection=0;
}
void SingleSimulationStep()
@@ -407,6 +413,7 @@ int main(int argc, char** argv)
glui->add_statictext("Tests");
GLUI_Listbox* testList =
glui->add_listbox("", &testSelection);
glui->add_button("Next Scene", 0,(GLUI_Update_CB)NextScene);
glui->add_separator();

View File

@@ -451,6 +451,10 @@ void ForkLiftDemo::renderme()
glRasterPos3f(400, 60, 0);
sprintf(buf,"F5 - toggle camera mode");
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
glRasterPos3f(400, 80, 0);
sprintf(buf,"Click inside windows for keyboard focus");
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
resetPerspectiveProjection();
glEnable(GL_LIGHTING);