*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> OpenGL/glubeginpolygon (3)              
Title
Content
Arch
Section
 

Contents


gluBeginPolygon(3G)	       OpenGL Reference		   gluBeginPolygon(3G)


NAME    [Toc]    [Back]

     gluBeginPolygon, gluEndPolygon - delimit a	polygon	description

C SPECIFICATION    [Toc]    [Back]

     void gluBeginPolygon( GLUtesselator* tess )

     void gluEndPolygon( GLUtesselator*	tess )

PARAMETERS    [Toc]    [Back]

     tess  Specifies the tessellation object (created with gluNewTess).

DESCRIPTION    [Toc]    [Back]

     gluBeginPolygon and gluEndPolygon delimit the definition of a nonconvex
     polygon.  To define such a	polygon, first call gluBeginPolygon.  Then
     define the	contours of the	polygon	by calling gluTessVertex for each
     vertex and	gluNextContour to start	each new contour.  Finally, call
     gluEndPolygon to signal the end of	the definition.	 See the gluTessVertex
     and gluNextContour	reference pages	for more details.

     Once gluEndPolygon	is called, the polygon is tessellated, and the
     resulting triangles are described through callbacks.  See gluTessCallback
     for descriptions of the callback functions.

NOTES    [Toc]    [Back]

     This command is obsolete and is provided for backward compatibility only.
     Calls to gluBeginPolygon are mapped to gluTessBeginPolygon	followed by
     gluTessBeginContour. Calls	to gluEndPolygon are mapped to
     gluTessEndContour followed	by gluTessEndPolygon.

EXAMPLE    [Toc]    [Back]

     A quadrilateral with a triangular hole in it can be described like	this:


	  gluBeginPolygon(tobj);
	     gluTessVertex(tobj, v1, v1);
	     gluTessVertex(tobj, v2, v2);
	     gluTessVertex(tobj, v3, v3);
	     gluTessVertex(tobj, v4, v4);
	  gluNextContour(tobj, GLU_INTERIOR);
	     gluTessVertex(tobj, v5, v5);
	     gluTessVertex(tobj, v6, v6);
	     gluTessVertex(tobj, v7, v7);
	  gluEndPolygon(tobj);

SEE ALSO    [Toc]    [Back]

      
      
     gluNewTess, gluNextContour, gluTessCallback, gluTessVertex,
     gluTessBeginPolygon, gluTessBeginContour





									Page 1






gluBeginPolygon(3G)	       OpenGL Reference		   gluBeginPolygon(3G)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
endpolygon IRIX delimit the vertices of a polygon
bgnpolygon IRIX delimit the vertices of a polygon
glutessbegincontour IRIX delimit a contour description
gluTessBeginContour Tru64 delimit a contour description
gluTessEndContour Tru64 delimit a contour description
captoinfo Linux convert a termcap description into a terminfo description
infotocap Linux convert a terminfo description into a termcap description
captoinfo IRIX convert a termcap description into a terminfo description
captoinfo Tru64 Converts a termcap description into a terminfo description.
infotocap OpenBSD convert a terminfo description into a termcap description
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service