projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ec11c
)
Added a cullface test.
author
Steve Baker
<steve@sjbaker.org>
Sun, 28 Mar 2004 15:44:22 +0000
(15:44 +0000)
committer
Steve Baker
<steve@sjbaker.org>
Sun, 28 Mar 2004 15:44:22 +0000
(15:44 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@493
7f0cb862
-5218-0410-a997-
914c9d46530a
progs/demos/shapes/shapes.c
patch
|
blob
|
history
diff --git
a/progs/demos/shapes/shapes.c
b/progs/demos/shapes/shapes.c
index
8d08462
..
2dc50f4
100644
(file)
--- a/
progs/demos/shapes/shapes.c
+++ b/
progs/demos/shapes/shapes.c
@@
-95,6
+95,14
@@
key(unsigned char key, int x, int y)
{
switch (key)
{
+ case 'n': glDisable ( GL_CULL_FACE ) ;
+ break ;
+ case 'f': glEnable ( GL_CULL_FACE ) ;
+ glCullFace ( GL_FRONT ) ;
+ break ;
+ case 'b': glEnable ( GL_CULL_FACE ) ;
+ glCullFace ( GL_BACK ) ;
+ break ;
case 27 :
case 'q':
exit(0);