Definition: |
include pGUI.e
include opengl.e glNormal(atom nx, ny, nz) -- or -- glNormal3(atom {nx,ny,nz}) (actually declared as a single sequence parameter) |
Description: |
Sets the current normal vector.
nx: the x-coordinate for the new current normal vector. ny: the y-coordinate for the new current normal vector. nz: the z-coordinate for the new current normal vector. |
Remarks |
The current normal is set to the given coordinates whenever you call the glNormal function. Normals specified with glNormal need not have unit length. If normalization is enabled, then normals specified with glNormal are normalized after transformation. You can control normalization by using glEnable and glDisable with the argument GL_NORMALIZE. By default, normalization is disabled. You can update the current normal at any time. In particular, you can call glNormal between a call to glBegin and the corresponding call to glEnd. The following functions retrieve information related to glNormal: glGet with argument GL_CURRENT_NORMAL glIsEnable with argument GL_NORMALIZE The glNormal function wraps the C glNormal3d routine. In fact, the opengl.e routine glNormal3 does too, despite bearing a superficial similarity to the C function glNormal3dv, however of course there is a significant difference between a sequence of length 3 and the raw address of the first double/float/int. See Technicalia for details. |
See Also: |
glBegin,
xor_bits,
glEnd,
int_to_bits,
int_to_bits,
glVertex
DEV See also //glBegin glColor //glEnd glIndex glTexCoord //glVertex |
