1GLUBEGINCURVE(3G)                                            GLUBEGINCURVE(3G)
2
3
4

NAME

6       gluBeginCurve, gluEndCurve - delimit a NURBS curve definition
7
8

C SPECIFICATION

10       void gluBeginCurve( GLUnurbs* nurb )
11
12       void gluEndCurve( GLUnurbs* nurb )
13
14

PARAMETERS

16       nurb  Specifies the NURBS object (created with gluNewNurbsRenderer).
17

DESCRIPTION

19       Use  gluBeginCurve  to  mark the beginning of a NURBS curve definition.
20       After calling gluBeginCurve, make one or more calls to gluNurbsCurve to
21       define  the  attributes  of  the  curve.   Exactly  one of the calls to
22       gluNurbsCurve  must  have  a  curve   type   of   GL_MAP1_VERTEX_3   or
23       GL_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(GL_EVAL_BIT) and glPopAttrib().  See the glPushAttrib ref‐
29       erence page for details on exactly what state these calls preserve.
30

EXAMPLE

32       The following commands render a textured NURBS curve with normals; tex‐
33       ture coordinates and normals are also specified as NURBS curves:
34
35       gluBeginCurve(nobj);
36          gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2);
37          gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL);
38          gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4); gluEndCurve(nobj);
39

SEE ALSO

41       gluBeginSurface(3G),     gluBeginTrim(3G),     gluNewNurbsRenderer(3G),
42       gluNurbsCurve(3G), glPopAttrib(3G), glPushAttrib(3G)
43
44
45
46
47                                                             GLUBEGINCURVE(3G)
Impressum