diff options
author | Keith Whitwell <[email protected]> | 2009-11-30 13:39:21 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-11-30 15:37:27 +0000 |
commit | cddc7e3a9cd321247c2298ef1b94cced1122a8e5 (patch) | |
tree | c2b8bb745618e8e8339d7a642093c50013060f08 /progs | |
parent | 4490122d0cae360d1552cea7d7d860de352f13f6 (diff) |
brw: add dumping to gem winsys
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/gears.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/demos/gears.c b/progs/demos/gears.c index 6016162d6f7..cf2c0a5443c 100644 --- a/progs/demos/gears.c +++ b/progs/demos/gears.c @@ -92,6 +92,7 @@ gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, glNormal3f(0.0, 0.0, -1.0); +#if 0 /* draw back face */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { @@ -160,6 +161,7 @@ gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); } glEnd(); +#endif } @@ -195,6 +197,7 @@ draw(void) glCallList(gear1); glPopMatrix(); +#if 0 glPushMatrix(); glTranslatef(3.1, -2.0, 0.0); glRotatef(-2.0 * angle - 9.0, 0.0, 0.0, 1.0); @@ -206,6 +209,7 @@ draw(void) glRotatef(-2.0 * angle - 25.0, 0.0, 0.0, 1.0); glCallList(gear3); glPopMatrix(); +#endif glPopMatrix(); @@ -213,6 +217,9 @@ draw(void) Frames++; + if (Frames == 2) + exit(0); + { GLint t = glutGet(GLUT_ELAPSED_TIME); if (t - T0 >= 5000) { |