add 'NextScene' button and minor help in GUI
This commit is contained in:
@@ -113,6 +113,12 @@ void ResetScene()
|
|||||||
demo->clientResetScene();
|
demo->clientResetScene();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NextScene()
|
||||||
|
{
|
||||||
|
testSelection++;
|
||||||
|
if(testSelection>23)
|
||||||
|
testSelection=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void SingleSimulationStep()
|
void SingleSimulationStep()
|
||||||
@@ -407,6 +413,7 @@ int main(int argc, char** argv)
|
|||||||
glui->add_statictext("Tests");
|
glui->add_statictext("Tests");
|
||||||
GLUI_Listbox* testList =
|
GLUI_Listbox* testList =
|
||||||
glui->add_listbox("", &testSelection);
|
glui->add_listbox("", &testSelection);
|
||||||
|
glui->add_button("Next Scene", 0,(GLUI_Update_CB)NextScene);
|
||||||
|
|
||||||
glui->add_separator();
|
glui->add_separator();
|
||||||
|
|
||||||
|
|||||||
@@ -451,6 +451,10 @@ void ForkLiftDemo::renderme()
|
|||||||
glRasterPos3f(400, 60, 0);
|
glRasterPos3f(400, 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);
|
||||||
|
sprintf(buf,"Click inside windows for keyboard focus");
|
||||||
|
BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf);
|
||||||
|
|
||||||
|
|
||||||
resetPerspectiveProjection();
|
resetPerspectiveProjection();
|
||||||
glEnable(GL_LIGHTING);
|
glEnable(GL_LIGHTING);
|
||||||
|
|||||||
Reference in New Issue
Block a user