Loads non-uniform rational B-spline (NURBS) sampling and culling matrices.
OpenGL C bindings library: libGL.a
void gluLoadSamplingMatrices(GLUnurbs* nurb, const GLfloat *model, const GLfloat *perspective, const GLint *view)
The gluLoadSamplingMatrices subroutine uses the model, perspective, and view parameters to recompute the sampling and culling matrices stored in the nurb parameter. The sampling matrix determines how finely a NURBS surface or curve must be tessellated to satisfy the sampling tolerance (as determined by the GLU_SAMPLING_TOLERANCE property). The culling matrix determines whether a NURBS curve or surface should be culled before rendering (when the GLU_CULLING property is turned on).
Use of the gluLoadSamplingMatrices subroutine is necessary only if the GLU_AUTO_LOAD_MATRIX property is turned off. (See the gluNurbsProperty subroutine for information on adjusting properties in a NURBS object.) Leaving the GLU_AUTO_LOAD_MATRIX property turned on causes performance slowdown since it necessitates a round-trip to the OpenGL server to fetch the current values of the modelview matrix, projection matrix, and viewport.
/usr/include/GL/gl.h | Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL. |
The gluGetNurbsProperty subroutine, gluNewNurbsRenderer subroutine, gluNurbsProperty subroutine.