NAME
gluBeginCurve, gluEndCurve
- delimit a NURBS curve definition
C SPECIFICATION
void gglluuBBeeggiinnCCuurrvvee(
GLUnurbs* _n_u_r_b )
void gglluuEEnnddCCuurrvvee(
GLUnurbs* _n_u_r_b )
delim $$
PARAMETERS
-
_n_u_r_b
-
Specifies the NURBS object (created with gglluuNNeewwNNuurrbbssRReennddeerreerr).
DESCRIPTION
Use gglluuBBeeggiinnCCuurrvvee to mark the beginning of a NURBS
curve definition.
After
calling gglluuBBeeggiinnCCuurrvvee, make one or more calls to
gglluuNNuurrbbssCCuurrvvee to define the attributes of the curve.
Exactly one of the calls to gglluuNNuurrbbssCCuurrvvee must have
a curve type of GGLL__MMAAPP11__VVEERRTTEEXX__33 or GGLL__MMAAPP11__VVEERRTTEEXX__44.
To mark the end of the NURBS curve definition, call gglluuEEnnddCCuurrvvee.
GL evaluators are used to render the NURBS curve as a series of line
segments.
Evaluator state is preserved during rendering
with ggllPPuusshhAAttttrriibb(GGLL__EEVVAALL__BBIITT) and
ggllPPooppAAttttrriibb().
See the ggllPPuusshhAAttttrriibb reference page for details on exactly what state
these calls preserve.
EXAMPLE
The following commands render a textured NURBS curve with normals;
texture coordinates and normals are also specified as NURBS curves:
gluBeginCurve(nobj);
gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2);
gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL);
gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4);
gluEndCurve(nobj);
SEE ALSO
gglluuBBeeggiinnSSuurrffaaccee((33GG)), gglluuBBeeggiinnTTrriimm((33GG)), gglluuNNeewwNNuurrbbssRReennddeerreerr((33GG)),
gglluuNNuurrbbssCCuurrvvee((33GG)),
ggllPPooppAAttttrriibb((33GG)), ggllPPuusshhAAttttrriibb((33GG))