projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a6749
)
use 'a' to toggle animation
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 10 Aug 2004 15:36:31 +0000
(15:36 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 10 Aug 2004 15:36:31 +0000
(15:36 +0000)
progs/demos/occlude.c
patch
|
blob
|
history
diff --git
a/progs/demos/occlude.c
b/progs/demos/occlude.c
index e26446059b335e76084aaace647f1bcdbb97bd97..8f7b90984e0ef07603fb11883aa43d43085d1891 100644
(file)
--- a/
progs/demos/occlude.c
+++ b/
progs/demos/occlude.c
@@
-34,6
+34,7
@@
static GLfloat Xpos = 0;
+static GLboolean Anim = GL_TRUE;
static void
@@
-171,6
+172,13
@@
static void Key( unsigned char key, int x, int y )
(void) x;
(void) y;
switch (key) {
+ case 'a':
+ Anim = !Anim;
+ if (Anim)
+ glutIdleFunc( Idle );
+ else
+ glutIdleFunc( NULL );
+ break;
case 27:
exit(0);
break;