1GLUTESSENDPOLYGON(3G) OpenGL Manual GLUTESSENDPOLYGON(3G)
2
3
4
6 gluTessEndPolygon - delimit a polygon description
7
9 void gluTessEndPolygon(GLUtesselator* tess);
10
12 tess
13 Specifies the tessellation object (created with gluNewTess()).
14
16 gluTessBeginPolygon() and gluTessEndPolygon delimit the definition of a
17 convex, concave, or self-intersecting polygon. Within each
18 gluTessBeginPolygon()/gluTessEndPolygon pair, there must be one or more
19 calls to gluTessBeginContour()/gluTessEndContour(). Within each
20 contour, there are zero or more calls to gluTessVertex(). The vertices
21 specify a closed contour (the last vertex of each contour is
22 automatically linked to the first). See the gluTessVertex(),
23 gluTessBeginContour(), and gluTessEndContour() reference pages for more
24 details.
25
26 Once gluTessEndPolygon 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
31 A quadrilateral with a triangular hole in it can be described like
32 this:
33
34 gluTessBeginPolygon(tobj, NULL);
35 gluTessBeginContour(tobj);
36 gluTessVertex(tobj, v1, v1);
37 gluTessVertex(tobj, v2, v2);
38 gluTessVertex(tobj, v3, v3);
39 gluTessVertex(tobj, v4, v4);
40 gluTessEndContour(tobj);
41 gluTessBeginContour(tobj);
42 gluTessVertex(tobj, v5, v5);
43 gluTessVertex(tobj, v6, v6);
44 gluTessVertex(tobj, v7, v7);
45 gluTessEndContour(tobj);
46 gluTessEndPolygon(tobj);
47
48
49 In the above example the pointers, v1 through v7, should point to
50 different addresses, since the values stored at these addresses will
51 not be read by the tesselator until gluTessEndPolygon is called.
52
54 gluNewTess(), gluTessBeginContour(), gluTessBeginPolygon(),
55 gluTessCallback(), gluTessNormal(), gluTessProperty(), gluTessVertex()
56
58 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
59 under the SGI Free Software B License. For details, see
60 http://oss.sgi.com/projects/FreeB/.
61
63 opengl.org
64
65
66
67opengl.org 06/10/2014 GLUTESSENDPOLYGON(3G)