1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"gluLoadSamplingMatrices">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>gluLoadSamplingMatrices
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>gluLoadSamplingMatrices
</refname>
17 <refpurpose>load NURBS sampling and culling matrices
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>gluLoadSamplingMatrices
</function></funcdef>
23 <paramdef>GLUnurbs*
<parameter>nurb
</parameter></paramdef>
24 <paramdef>const GLfloat *
<parameter>model
</parameter></paramdef>
25 <paramdef>const GLfloat *
<parameter>perspective
</parameter></paramdef>
26 <paramdef>const GLint *
<parameter>view
</parameter></paramdef>
30 <!-- eqn: ignoring delim $$ -->
31 <refsect1 id=
"parameters"><title>Parameters
</title>
34 <term><parameter>nurb
</parameter></term>
37 Specifies the NURBS object (created with
<citerefentry><refentrytitle>gluNewNurbsRenderer
</refentrytitle></citerefentry>).
42 <term><parameter>model
</parameter></term>
45 Specifies a modelview matrix (as from a
<citerefentry><refentrytitle>glGetFloatv
</refentrytitle></citerefentry> call).
50 <term><parameter>perspective
</parameter></term>
53 Specifies a projection matrix (as from a
<citerefentry><refentrytitle>glGetFloatv
</refentrytitle></citerefentry> call).
58 <term><parameter>view
</parameter></term>
61 Specifies a viewport (as from a
<citerefentry><refentrytitle>glGetIntegerv
</refentrytitle></citerefentry> call).
67 <refsect1 id=
"description"><title>Description
</title>
69 <function>gluLoadSamplingMatrices
</function> uses
<parameter>model
</parameter>,
<parameter>perspective
</parameter>, and
<parameter>view
</parameter> to recompute the sampling and culling
70 matrices stored in
<parameter>nurb
</parameter>.
71 The sampling matrix determines how finely a NURBS curve or surface
72 must be tessellated to satisfy the sampling tolerance (as determined by the
73 <constant>GLU_SAMPLING_TOLERANCE
</constant> property).
74 The culling matrix is used in deciding if a NURBS curve or surface
75 should be culled before
76 rendering (when the
<constant>GLU_CULLING
</constant> property is turned on).
79 <function>gluLoadSamplingMatrices
</function> is necessary only if the
<constant>GLU_AUTO_LOAD_MATRIX
</constant> property is turned
80 off (see
<citerefentry><refentrytitle>gluNurbsProperty
</refentrytitle></citerefentry>).
81 Although it can be convenient to leave the
<constant>GLU_AUTO_LOAD_MATRIX
</constant>
82 property turned on, there can be a performance penalty for doing so.
83 (A round trip to the GL server is needed to fetch the current values
84 of the modelview matrix, projection matrix, and viewport.)
87 <refsect1 id=
"seealso"><title>See Also
</title>
89 <citerefentry><refentrytitle>gluGetNurbsProperty
</refentrytitle></citerefentry>,
90 <citerefentry><refentrytitle>gluNewNurbsRenderer
</refentrytitle></citerefentry>,
91 <citerefentry><refentrytitle>gluNurbsProperty
</refentrytitle></citerefentry>
94 <refsect1 id=
"Copyright"><title>Copyright
</title>
96 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
97 Silicon Graphics, Inc. This document is licensed under the SGI
98 Free Software B License. For details, see
99 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.