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:
parent
bc89db3fb9
commit
7e1599594c
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
#define GLUT_SKIP_STALE_MOTION_EVENTS 0x0204
|
#define GLUT_SKIP_STALE_MOTION_EVENTS 0x0204
|
||||||
|
|
||||||
#define GLUT_OBJECTS_VISUALIZE_NORMALS 0x0205
|
#define GLUT_GEOMETRY_VISUALIZE_NORMALS 0x0205
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* New tokens for glutInitDisplayMode.
|
* New tokens for glutInitDisplayMode.
|
||||||
|
@ -612,7 +612,7 @@ static void display(void)
|
|||||||
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
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)
|
if (useShader && !shaderReady)
|
||||||
initShader();
|
initShader();
|
||||||
|
@ -115,7 +115,7 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value )
|
|||||||
fgState.SkipStaleMotion = value;
|
fgState.SkipStaleMotion = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GLUT_OBJECTS_VISUALIZE_NORMALS:
|
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
|
||||||
if( fgStructure.CurrentWindow != NULL )
|
if( fgStructure.CurrentWindow != NULL )
|
||||||
fgStructure.CurrentWindow->State.VisualizeNormals = value;
|
fgStructure.CurrentWindow->State.VisualizeNormals = value;
|
||||||
break;
|
break;
|
||||||
@ -210,7 +210,7 @@ int FGAPIENTRY glutGet( GLenum eWhat )
|
|||||||
case GLUT_SKIP_STALE_MOTION_EVENTS:
|
case GLUT_SKIP_STALE_MOTION_EVENTS:
|
||||||
return fgState.SkipStaleMotion;
|
return fgState.SkipStaleMotion;
|
||||||
|
|
||||||
case GLUT_OBJECTS_VISUALIZE_NORMALS:
|
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
|
||||||
if( fgStructure.CurrentWindow == NULL )
|
if( fgStructure.CurrentWindow == NULL )
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
return fgStructure.CurrentWindow->State.VisualizeNormals;
|
return fgStructure.CurrentWindow->State.VisualizeNormals;
|
||||||
|
Reference in New Issue
Block a user