[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 for AIX: Reference Manual

gluLoadSamplingMatrices Subroutine

Purpose

Loads non-uniform rational B-spline (NURBS) sampling and culling matrices.

Library

OpenGL C bindings library: libGL.a

C Syntax

void gluLoadSamplingMatrices(GLUnurbs* nurb, 
   const GLfloat *model, 
   const GLfloat *perspective, 
   const GLint *view)

Description

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.

Parameters

nurb Specifies the NURBS object created with the gluNewNurbsRenderer subroutine.
model Specifies a modelview matrix, such as from a glGetFloatv call.
perspective Specifies a projection matrix, such as from a glGetFloatv call.
view Specifies a viewport, such as from a glGetIntegerv call.

Files

/usr/include/GL/gl.h Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The gluGetNurbsProperty subroutine, gluNewNurbsRenderer subroutine, gluNurbsProperty subroutine.

OpenGL Overview.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]