diff options
author | Brian Paul <[email protected]> | 2002-11-05 20:59:16 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-11-05 20:59:16 +0000 |
commit | 25af66a67f6968d29e5a4bed33a41406ff870085 (patch) | |
tree | e762f0fc08190385ad3050502c1680ddd24845ca | |
parent | aca31cf6de0116b65bf55aadf9ebdff7fea7dfd6 (diff) |
added some printfs to show current polygon mode and cull state
-rw-r--r-- | progs/samples/logo.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/progs/samples/logo.c b/progs/samples/logo.c index cf0f90c531a..98a8e99aece 100644 --- a/progs/samples/logo.c +++ b/progs/samples/logo.c @@ -1,4 +1,4 @@ -/* $Id: logo.c,v 1.2 1999/12/15 13:02:09 brianp Exp $ */ +/* $Id: logo.c,v 1.3 2002/11/05 20:59:16 brianp Exp $ */ /* * Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc. @@ -1397,12 +1397,15 @@ static void Key(unsigned char key, int x, int y) switch (polyMode) { case GL_BACK: polyMode = GL_FRONT; + printf("PolygonMode GL_FRONT\n"); break; case GL_FRONT: polyMode = GL_FRONT_AND_BACK; + printf("PolygonMode GL_FRONT_AND_BACK\n"); break; case GL_FRONT_AND_BACK: polyMode = GL_BACK; + printf("PolygonMode GL_BACK\n"); break; default: break; @@ -1455,14 +1458,17 @@ static void Key(unsigned char key, int x, int y) case 'q': glDisable(GL_CULL_FACE); + printf("disable culling\n"); break; case 'w': glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); + printf("enable front face culling\n"); break; case 'e': glEnable(GL_CULL_FACE); glCullFace(GL_BACK); + printf("enable back face culling\n"); break; case 'r': |