|
XGraphicsglNormal3d(Double, Double, Double) Method
|
Sets the current normal vector.
Namespace: Pixoneer.NXDL.NGRAssembly: NXDLgr (in NXDLgr.dll) Version: 2.0.3.38
Syntaxpublic void glNormal3d(
double nx,
double ny,
double nz
)
Parameters
- nx Double
- Specifies the x-coordinate for the new current normal vector.
- ny Double
- Specifies the y-coordinate for the new current normal vector.
- nz Double
- Specifies the z-coordinate for the new current normal vector.
Return Value
This function does not return a value.
Remarks
The current normal is set to the given coordinates whenever you call the glNormal3dfunction
Byte, short, or integer arguments are converted to floating-point format by using 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 usingglNormal3d need not have unit length. If normalization is enabled, then normals specified with glNormal3d 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 callglNormal3dbetween a call to glBegin and the corresponding call to glEnd. The following functions retrieve information related to glNormal3d;
See Also