Added a cullface test.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@493 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
c23c129b0e
commit
3905363c58
@ -95,6 +95,14 @@ key(unsigned char key, int x, int y)
|
|||||||
{
|
{
|
||||||
switch (key)
|
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 27 :
|
||||||
case 'q':
|
case 'q':
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Reference in New Issue
Block a user