1GLUBEGINSURFACE(3G)              OpenGL Manual             GLUBEGINSURFACE(3G)
2
3
4

NAME

6       gluBeginSurface - delimit a NURBS surface definition
7

C SPECIFICATION

9       void gluBeginSurface(GLUnurbs* nurb);
10

C SPECIFICATION

12       void gluEndSurface(GLUnurbs* nurb);
13

PARAMETERS

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

DESCRIPTION

19       Use gluBeginSurface to mark the beginning of a NURBS surface
20       definition. After calling gluBeginSurface, make one or more calls to
21       gluNurbsSurface() to define the attributes of the surface. Exactly one
22       of these calls to gluNurbsSurface() must have a surface type of
23       GLU_MAP2_VERTEX_3 or GLU_MAP2_VERTEX_4. To mark the end of the NURBS
24       surface definition, call gluEndSurface().
25
26       Trimming of NURBS surfaces is supported with gluBeginTrim(),
27       gluPwlCurve(), gluNurbsCurve(), and gluEndTrim(). See the
28       gluBeginTrim() reference page for details.
29
30       GL evaluators are used to render the NURBS surface as a set of
31       polygons. Evaluator state is preserved during rendering with
32       glPushAttrib()(GLU_EVAL_BIT) and glPopAttrib(). See the glPushAttrib()
33       reference page for details on exactly what state these calls preserve.
34

EXAMPLE

36       The following commands render a textured NURBS surface with normals;
37       the texture coordinates and normals are also described as NURBS
38       surfaces:
39
40           gluBeginSurface(nobj);
41              gluNurbsSurface(nobj, ..., GL_MAP2_TEXTURE_COORD_2);
42              gluNurbsSurface(nobj, ..., GL_MAP2_NORMAL);
43              gluNurbsSurface(nobj, ..., GL_MAP2_VERTEX_4);
44           gluEndSurface(nobj);
45
46
47

SEE ALSO

49       gluBeginCurve(), gluBeginTrim(), gluNewNurbsRenderer(),
50       gluNurbsCurve(), gluNurbsSurface(), gluPwlCurve(), glPushAttrib()
51
53       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
54       under the SGI Free Software B License. For details, see
55       http://oss.sgi.com/projects/FreeB/.
56

AUTHORS

58       opengl.org
59
60
61
62opengl.org                        06/10/2014               GLUBEGINSURFACE(3G)
Impressum