The glNormalPointer subroutine specifies the location and data format of an array of normals to use when rendering. The type parameter specifies the data type of the normal coordinates and stride gives the byte stride from one normal to the next allowing vertices and attributes to be packed into a single array or stored in separate arrays. When a normal array is specified, type , stride , and pointer are saved as client side state. If enabled, the normal array is used when glDrawArrays , glDrawElements or glArrayElement is called. Use glArrayElement to specify primitives by indexing vertices and vertex attributes and glDrawElements to construct a sequence of primitives by indexing vertices and vertex attributes.
Parameters type Specifies the the data type of each coordinate in the array.
The initial value is 0. Notes The glNormalPointer subroutine is available only if the GL version is 1.1 or greater. The normal array is initially disabled and it won't be accessed when glArrayElement , glDrawElements or glDrawArrays is called. Execution of glNormalPointer is not allowed between glBegin and the corresponding glEnd , but an error may or may not be generated. If an error is not generated, the operation is undefined.