projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8625803
)
fix typo, added space/anim control
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 13 Jun 2003 02:42:57 +0000
(
02:42
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 13 Jun 2003 02:42:57 +0000
(
02:42
+0000)
progs/demos/arbocclude.c
patch
|
blob
|
history
diff --git
a/progs/demos/arbocclude.c
b/progs/demos/arbocclude.c
index 959e9763b65021611b93b0ebf68b07b72e1711af..30d95dfd6734718f3fe299e907da5a4430c2fcb9 100644
(file)
--- a/
progs/demos/arbocclude.c
+++ b/
progs/demos/arbocclude.c
@@
-1,5
+1,5
@@
/*
- * GL_ARB_occlus
t
ion_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();
}