diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-13 02:42:57 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-13 02:42:57 +0000 |
commit | 8fa507592b7bdb087c9eb32ed2322cb805b724ec (patch) | |
tree | 2b6b453d220ecfb2fb7a9aa66b038e640ee05f3b /progs/demos | |
parent | 86258034d5527ba78dd00da65336ff27e1925143 (diff) |
fix typo, added space/anim control
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/arbocclude.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/progs/demos/arbocclude.c b/progs/demos/arbocclude.c index 959e9763b6..30d95dfd67 100644 --- a/progs/demos/arbocclude.c +++ b/progs/demos/arbocclude.c @@ -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(); } |