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=
"gluBeginCurve">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>gluBeginCurve
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>gluBeginCurve
</refname>
17 <refpurpose>delimit a NURBS curve definition
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>gluBeginCurve
</function></funcdef>
23 <paramdef>GLUnurbs*
<parameter>nurb
</parameter></paramdef>
27 <refsynopsisdiv><title>C Specification
</title>
30 <funcdef>void
<function>gluEndCurve
</function></funcdef>
31 <paramdef>GLUnurbs*
<parameter>nurb
</parameter></paramdef>
35 <!-- eqn: ignoring delim $$ -->
36 <refsect1 id=
"parameters"><title>Parameters
</title>
39 <term><parameter>nurb
</parameter></term>
42 Specifies the NURBS object (created with
<citerefentry><refentrytitle>gluNewNurbsRenderer
</refentrytitle></citerefentry>).
48 <refsect1 id=
"description"><title>Description
</title>
50 Use
<function>gluBeginCurve
</function> to mark the beginning of a NURBS
53 calling
<function>gluBeginCurve
</function>, make one or more calls to
54 <citerefentry><refentrytitle>gluNurbsCurve
</refentrytitle></citerefentry> to define the attributes of the curve.
55 Exactly one of the calls to
<citerefentry><refentrytitle>gluNurbsCurve
</refentrytitle></citerefentry> must have
56 a curve type of
<constant>GLU_MAP1_VERTEX_3
</constant> or
<constant>GLU_MAP1_VERTEX_4
</constant>.
57 To mark the end of the NURBS curve definition, call
<citerefentry><refentrytitle>gluEndCurve
</refentrytitle></citerefentry>.
60 GL evaluators are used to render the NURBS curve as a series of line
62 Evaluator state is preserved during rendering
63 with
<citerefentry><refentrytitle>glPushAttrib
</refentrytitle></citerefentry>(
<constant>GLU_EVAL_BIT
</constant>) and
64 <citerefentry><refentrytitle>glPopAttrib
</refentrytitle></citerefentry>().
65 See the
<citerefentry><refentrytitle>glPushAttrib
</refentrytitle></citerefentry> reference page for details on exactly what state
69 <refsect1 id=
"example"><title>Example
</title>
71 The following commands render a textured NURBS curve with normals;
72 texture coordinates and normals are also specified as NURBS curves:
75 gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2);
76 gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL);
77 gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4);
82 <refsect1 id=
"seealso"><title>See Also
</title>
84 <citerefentry><refentrytitle>gluBeginSurface
</refentrytitle></citerefentry>,
85 <citerefentry><refentrytitle>gluBeginTrim
</refentrytitle></citerefentry>,
86 <citerefentry><refentrytitle>gluNewNurbsRenderer
</refentrytitle></citerefentry>,
87 <citerefentry><refentrytitle>gluNurbsCurve
</refentrytitle></citerefentry>,
88 <citerefentry><refentrytitle>glPopAttrib
</refentrytitle></citerefentry>,
89 <citerefentry><refentrytitle>glPushAttrib
</refentrytitle></citerefentry>
92 <refsect1 id=
"Copyright"><title>Copyright
</title>
94 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
95 Silicon Graphics, Inc. This document is licensed under the SGI
96 Free Software B License. For details, see
97 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.