The gluNurbsCurve function defines the shape of a NURBS curve.
void gluNurbsCurve(
GLUnurbsObj * nobj,
GLint nknots,
GLfloat * knot,
GLint stride,
GLfloat * ctlarray,
GLint order,
GLenum type
);
When gluNurbsCurve appears between a gluBeginCurve/gluEndCurve pair, it describes a curve to be rendered. You associate positional, texture, and color coordinates by presenting each as a separate gluNurbsCurve between a gluBeginCurve/gluEndCurve pair. Do not make more than one call to gluNurbsCurve for color, position, and texture data within a single gluBeginCurve/gluEndCurve pair. Make exactly one call to describe the position of the curve (a type of GL_MAP1_VERTEX_3 or GL_MAP1_VERTEX_4).
When gluNurbsCurve appears between a gluBeginTrim/gluEndTrim pair, it describes a trimming curve on a NURBS surface. If type is GLU_MAP1_TRIM_2, it describes a curve in two-dimensional (u and v) parameter space. If it is GLU_MAP1_TRIM_3, it describes a curve in two-dimensional homogeneous (u, v, and w) parameter space. For more discussion about trimming curves, see gluBeginTrim.
The following functions render a textured NURBS curve with normals:
gluBeginCurve(nobj);
gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2);
gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL);
gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4);
gluEndCurve(nobj);
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in glu.h.
Import Library: Link with glu32.lib.
gluBeginCurve, gluBeginTrim, gluEndCurve, gluEndTrim, gluNewNurbsRenderer, gluPwlCurve