void COglTest::Loop(float timestep) { // ------------- 3d scenery --------------------------------------- ScopedRenderMode rm(TUX); ClearRenderContext(colDDBackgr); glLoadIdentity(); glPushMatrix(); SetTestLight(); /* glTranslatef (xposition, yposition, zposition); glRotatef (xrotation, 1, 0, 0); glRotatef (yrotation, 0, 1, 0); glRotatef (zrotation, 0, 0, 1); */ glPopMatrix(); // --------------- 2d screen -------------------------------------- Setup2dScene(); ScopedRenderMode rm2(TEXFONT); FT.SetProps("bold", 24, colWhite); FT.DrawString(CENTER, 10, "Test screen"); Reshape(Winsys.resolution.width, Winsys.resolution.height); Winsys.SwapBuffers(); }
void TestLoop (double timestep) { check_gl_error(); // ------------- 3d scenery --------------------------------------- set_gl_options (TUX); ClearRenderContext (colDDBackgr); glLoadIdentity (); glPushMatrix (); SetTestLight (); /* glTranslatef (xposition, yposition, zposition); glRotatef (xrotation, 1, 0, 0); glRotatef (yrotation, 0, 1, 0); glRotatef (zrotation, 0, 0, 1); */ glPopMatrix (); // --------------- 2d screen -------------------------------------- SetupGuiDisplay (); set_gl_options (TEXFONT); FT.SetFont ("bold"); FT.SetSize (24); FT.SetColor (colWhite); FT.DrawString (CENTER, 10, "Test screen"); Reshape (param.x_resolution, param.y_resolution); Winsys.SwapBuffers (); }