glNormalPointer

define an array of normals

Signature

glNormalPointer( GLenum ( type ) , GLsizei ( stride ) , const GLvoid * ( pointer ) )-> void
glNormalPointer( type , stride , pointer )
glNormalPointerf( pointer )
glNormalPointeri( pointer )
glNormalPointers( pointer )

Parameters

VariablesDescription
type
Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE , GL_SHORT , GL_INT , GL_FLOAT , and GL_DOUBLE are accepted. The initial value is GL_FLOAT .
stride
Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0.
pointer
Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glNormalPointer
OpenGLContext tests/shader_sphere.py Lines: 105
OpenGLContext tests/gldrawarrays_string.py Lines: 15
OpenGLContext OpenGLContext/drawcube.py Lines: 35
OpenGLContext OpenGLContext/scenegraph/box.py Lines: 39
OpenGLContext OpenGLContext/scenegraph/quadrics.py Lines: 56
OpenGLContext OpenGLContext/scenegraph/indexedpolygons.py Lines: 38, 93
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 190
{GPL3} OpenGL-Programmable 03-array.py Lines: 97
{GPL3} OpenGL-Programmable 05-shader.py Lines: 182
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 116