GLULOADSAMPLINGMATRICES(3G) GLULOADSAMPLINGMATRICES(3G)
NAME
gluLoadSamplingatrices - load NURBS sampling and culling matrices
C SPECIFICATION
void gluLoadSamplingatrices( GLUnurbs* nurb,
const GLfloat *model,
const GLfloat *perspective,
const GLint *view )
PARAMETERS
nurb Specifies the NURBS object (created with
gluNewNurbsRenderer).
model Specifies a modelview matrix (as from a glGetFloatv call).
perspective Specifies a projection matrix (as from a glGetFloatv
call).
view Specifies a viewport (as from a glGetIntegerv call).
DESCRIPTION
gluLoadSamplingatrices uses model, perspective, and view to recompute
the sampling and culling matrices stored in nurb. The sampling matrix
determines how finely a NURBS curve or surface must be tessellated to
satisfy the sampling tolerance (as determined by the
GLUSAMPLINGTOLERANCE property). The culling matrix is used in decid-
ing if a NURBS curve or surface should be culled before rendering (when
the GLUCULING property is turned on).
gluLoadSamplingatrices is necessary only if the GLUAUTOLOADMATRIX
property is turned off (see gluNurbsProperty). Although it can be con-
venient to leave the GLUAUTOLOADMATRIX property turned on, there can
be a performance penalty for doing so. (A round trip to the GL server
is needed to fetch the current values of the modelview matrix, projec-
tion matrix, and viewport.)
SEE ALSO
gluGetNurbsProperty, gluNewNurbsRenderer, gluNurbsProperty
GLULOADSAMPLINGMATRICES(3G)
|