mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
fix typo, added space/anim control
This commit is contained in:
parent
86258034d5
commit
8fa507592b
1 changed files with 9 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* GL_ARB_occlustion_query demo
|
||||
* GL_ARB_occlusion_query demo
|
||||
*
|
||||
* Brian Paul
|
||||
* 12 June 2003
|
||||
|
|
@ -33,6 +33,7 @@
|
|||
#include <GL/glut.h>
|
||||
|
||||
|
||||
static GLboolean Anim = GL_TRUE;
|
||||
static GLfloat Xpos = 0;
|
||||
static GLuint OccQuery;
|
||||
|
||||
|
|
@ -183,6 +184,13 @@ static void Key( unsigned char key, int x, int y )
|
|||
case 27:
|
||||
exit(0);
|
||||
break;
|
||||
case ' ':
|
||||
Anim = !Anim;
|
||||
if (Anim)
|
||||
glutIdleFunc(Idle);
|
||||
else
|
||||
glutIdleFunc(NULL);
|
||||
break;
|
||||
}
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue