Tao.OpenGl SDK Documentation

Glu.gluEndCurve Method 

Delimits a Non-Uniform Rational B-Spline (NURBS) curve definition.

[Visual Basic]
Public Shared Sub gluEndCurve( _
   ByVal nurb As GLUnurbs _
)
[C#]
public static void gluEndCurve(
   GLUnurbs nurb
);

Parameters

nurb
The NURBS object (created with gluNewNurbsRenderer).

Remarks

Use gluBeginCurve to mark the beginning of a NURBS curve definition. After calling gluBeginCurve, make one or more calls to gluNurbsCurve to define the attributes of the curve. Exactly one of the calls to gluNurbsCurve must have a curve type of GL_MAP1_VERTEX_3 or GL_MAP1_VERTEX_4. To mark the end of the NURBS curve definition, call gluEndCurve.

OpenGL evaluators are used to render the NURBS curve as a series of line segments. Evaluator state is preserved during rendering with Gl.glPushAttrib(Gl.GL_EVAL_BIT) and Gl.glPopAttrib. For information on exactly what state these calls preserve, see glPushAttrib.

EXAMPLE

The following commands render a textured NURBS curve with normals; texture coordinates and normals are also specified as NURBS curves:

            Glu.gluBeginCurve(nobj);
            Glu.gluNurbsCurve(nobj, ..., Gl.GL_MAP1_TEXTURE_COORD_2);
            Glu.gluNurbsCurve(nobj, ..., Gl.GL_MAP1_NORMAL);
            Glu.gluNurbsCurve(nobj, ..., Gl.GL_MAP1_VERTEX_4);
            Glu.gluEndCurve(nobj);
            

See Also

Glu Class | Tao.OpenGl Namespace | glPopAttrib | glPushAttrib | gluBeginSurface | gluBeginTrim | gluNewNurbsRenderer | gluNurbsCurve