GLUT_GEOMETRY_VISUALIZE_NORMALS is a better name than GLUT_OBJECTS_VISUALIZE_NORMALS

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1407 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-11-19 02:01:52 +00:00
parent bc89db3fb9
commit 7e1599594c
3 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@
#define GLUT_SKIP_STALE_MOTION_EVENTS 0x0204
#define GLUT_OBJECTS_VISUALIZE_NORMALS 0x0205
#define GLUT_GEOMETRY_VISUALIZE_NORMALS 0x0205
/*
* New tokens for glutInitDisplayMode.

View File

@ -612,7 +612,7 @@ static void display(void)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glutSetOption(GLUT_OBJECTS_VISUALIZE_NORMALS,visNormals); /* Normals visualized or not? */
glutSetOption(GLUT_GEOMETRY_VISUALIZE_NORMALS,visNormals); /* Normals visualized or not? */
if (useShader && !shaderReady)
initShader();

View File

@ -115,7 +115,7 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value )
fgState.SkipStaleMotion = value;
break;
case GLUT_OBJECTS_VISUALIZE_NORMALS:
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
if( fgStructure.CurrentWindow != NULL )
fgStructure.CurrentWindow->State.VisualizeNormals = value;
break;
@ -210,7 +210,7 @@ int FGAPIENTRY glutGet( GLenum eWhat )
case GLUT_SKIP_STALE_MOTION_EVENTS:
return fgState.SkipStaleMotion;
case GLUT_OBJECTS_VISUALIZE_NORMALS:
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
if( fgStructure.CurrentWindow == NULL )
return GL_FALSE;
return fgStructure.CurrentWindow->State.VisualizeNormals;