1GLUBEGINCURVE(3G) OpenGL Manual GLUBEGINCURVE(3G)
2
3
4
6 gluBeginCurve - delimit a NURBS curve definition
7
9 void gluBeginCurve(GLUnurbs* nurb);
10
12 void gluEndCurve(GLUnurbs* nurb);
13
15 nurb
16 Specifies the NURBS object (created with gluNewNurbsRenderer()).
17
19 Use gluBeginCurve to mark the beginning of a NURBS curve definition.
20 After calling gluBeginCurve, make one or more calls to gluNurbsCurve()
21 to define the attributes of the curve. Exactly one of the calls to
22 gluNurbsCurve() must have a curve type of GLU_MAP1_VERTEX_3 or
23 GLU_MAP1_VERTEX_4. To mark the end of the NURBS curve definition, call
24 gluEndCurve().
25
26 GL evaluators are used to render the NURBS curve as a series of line
27 segments. Evaluator state is preserved during rendering with
28 glPushAttrib()(GLU_EVAL_BIT) and glPopAttrib()(). See the
29 glPushAttrib() reference page for details on exactly what state these
30 calls preserve.
31
33 The following commands render a textured NURBS curve with normals;
34 texture coordinates and normals are also specified as NURBS curves:
35
36 gluBeginCurve(nobj);
37 gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2);
38 gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL);
39 gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4);
40 gluEndCurve(nobj);
41
42
43
45 gluBeginSurface(), gluBeginTrim(), gluNewNurbsRenderer(),
46 gluNurbsCurve(), glPopAttrib(), glPushAttrib()
47
49 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
50 under the SGI Free Software B License. For details, see
51 http://oss.sgi.com/projects/FreeB/.
52
54 opengl.org
55
56
57
58opengl.org 06/10/2014 GLUBEGINCURVE(3G)