1GLUTESSENDPOLYGON(3G) GLUTESSENDPOLYGON(3G)
2
3
4
6 gluTessEndPolygon - delimit a polygon description
7
8
10 void gluTessEndPolygon( GLUtesselator* tess )
11
12
14 tess Specifies the tessellation object (created with gluNewTess).
15
17 gluTessBeginPolygon and gluTessEndPolygon delimit the definition of a
18 convex, concave or self-intersecting polygon. Within each
19 gluTessBeginPolygon/gluTessEndPolygon pair, there must be one or more
20 calls to gluTessBeginContour/gluTessEndContour. Within each contour,
21 there are zero or more calls to gluTessVertex. The vertices specify a
22 closed contour (the last vertex of each contour is automatically linked
23 to the first). See the gluTessVertex, gluTessBeginContour and
24 gluTessEndContour reference pages for more 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); gluTessEndPolygon(tobj);
46 In the above example the pointers, v1 through v7, should point to dif‐
47 ferent addresses, since the values stored at these addresses will not
48 be read by the tesselator until gluTessEndPolygon is called.
49
51 gluNewTess(3G), gluTessBeginContour(3G), gluTessVertex(3G),
52 gluTessCallback(3G), gluTessProperty(3G), gluTessNormal(3G),
53 gluTessBeginPolygon(3G)
54
55
56
57 GLUTESSENDPOLYGON(3G)