1GLULOADSAMPLINGMATRI(3G) OpenGL Manual GLULOADSAMPLINGMATRI(3G)
2
3
4
6 gluLoadSamplingMatrices - load NURBS sampling and culling matrices
7
9 void gluLoadSamplingMatrices(GLUnurbs* nurb, const GLfloat * model,
10 const GLfloat * perspective,
11 const GLint * view);
12
14 nurb
15 Specifies the NURBS object (created with gluNewNurbsRenderer()).
16
17 model
18 Specifies a modelview matrix (as from a glGetFloatv() call).
19
20 perspective
21 Specifies a projection matrix (as from a glGetFloatv() call).
22
23 view
24 Specifies a viewport (as from a glGetIntegerv() call).
25
27 gluLoadSamplingMatrices uses model, perspective, and view to recompute
28 the sampling and culling matrices stored in nurb. The sampling matrix
29 determines how finely a NURBS curve or surface must be tessellated to
30 satisfy the sampling tolerance (as determined by the
31 GLU_SAMPLING_TOLERANCE property). The culling matrix is used in
32 deciding if a NURBS curve or surface should be culled before rendering
33 (when the GLU_CULLING property is turned on).
34
35 gluLoadSamplingMatrices is necessary only if the GLU_AUTO_LOAD_MATRIX
36 property is turned off (see gluNurbsProperty()). Although it can be
37 convenient to leave the GLU_AUTO_LOAD_MATRIX property turned on, there
38 can be a performance penalty for doing so. (A round trip to the GL
39 server is needed to fetch the current values of the modelview matrix,
40 projection matrix, and viewport.)
41
43 gluGetNurbsProperty(), gluNewNurbsRenderer(), gluNurbsProperty()
44
46 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
47 under the SGI Free Software B License. For details, see
48 http://oss.sgi.com/projects/FreeB/.
49
51 opengl.org
52
53
54
55opengl.org 07/13/2018 GLULOADSAMPLINGMATRI(3G)