1GLUBEGINPOLYGON(3G)                                        GLUBEGINPOLYGON(3G)
2
3
4

NAME

6       gluBeginPolygon, gluEndPolygon - delimit a polygon description
7
8

C SPECIFICATION

10       void gluBeginPolygon( GLUtesselator* tess )
11
12       void gluEndPolygon( GLUtesselator* tess )
13
14

PARAMETERS

16       tess  Specifies the tessellation object (created with gluNewTess).
17

DESCRIPTION

19       gluBeginPolygon and gluEndPolygon delimit the definition of a nonconvex
20       polygon.  To define such a polygon, first call  gluBeginPolygon.   Then
21       define  the  contours  of the polygon by calling gluTessVertex for each
22       vertex and gluNextContour to start each  new  contour.   Finally,  call
23       gluEndPolygon   to   signal   the  end  of  the  definition.   See  the
24       gluTessVertex and gluNextContour reference pages for more details.
25
26       Once gluEndPolygon is called,  the  polygon  is  tessellated,  and  the
27       resulting    triangles    are   described   through   callbacks.    See
28       gluTessCallback for descriptions of the callback functions.
29

NOTES

31       This command is obsolete and is  provided  for  backward  compatibility
32       only.  Calls  to gluBeginPolygon are mapped to gluTessBeginPolygon fol‐
33       lowed by gluTessBeginContour. Calls  to  gluEndPolygon  are  mapped  to
34       gluTessEndContour followed by gluTessEndPolygon.
35

EXAMPLE

37       A  quadrilateral  with  a  triangular  hole in it can be described like
38       this:
39
40       gluBeginPolygon(tobj);
41          gluTessVertex(tobj, v1, v1);
42          gluTessVertex(tobj, v2, v2);
43          gluTessVertex(tobj, v3, v3);
44          gluTessVertex(tobj, v4, v4); gluNextContour(tobj, GLU_INTERIOR);
45          gluTessVertex(tobj, v5, v5);
46          gluTessVertex(tobj, v6, v6);
47          gluTessVertex(tobj, v7, v7); gluEndPolygon(tobj);
48

SEE ALSO

50       gluNewTess(3G),        gluNextContour(3G),         gluTessCallback(3G),
51       gluTessVertex(3G), gluTessBeginPolygon(3G), gluTessBeginContour(3G)
52
53
54
55
56
57
58                                                           GLUBEGINPOLYGON(3G)
Impressum