glNormal3s function
Sets the current normal vector.
void WINAPI glNormal3s(
GLshort nx,
GLshort ny,
GLshort nz
);
-
nx
-
Specifies the x-coordinate of the new current normal vector.
-
ny
-
Specifies the y-coordinate of the new current normal vector.
-
nz
-
Specifies the z-coordinate of the new current normal vector.
This function does not return a value.
The current normal is set to the given coordinates whenever you call theglNormal3sfunction.
Byte, short, or integer arguments are converted to floating-point format with a linear mapping that maps the most positive representable integer value to 1.0, and the most negative representable integer value to -1.0.
Normals specified by usingglNormal3s need not have unit length. If normalization is enabled, then normals specified with glNormal3s are normalized after transformation. You can control normalizationby 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 callglNormal3sbetween a call to glBegin and the corresponding call to glEnd. The following functions retrieve information related to glNormal3s:
glGet with argument GL_CURRENT_NORMAL
glIsEnable with argument GL_NORMALIZE
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|