Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

TessPoly Class Reference


Public Methods

 TessPoly ()
int setWindingRule (GLenum winding_rule)
int renderContour (double obj_data[][6], GLuint num_vertices)
int beginPolygon (void)
int endPolygon (void)
int beginContour (void)
int endContour (void)
int end (void)

Private Attributes

GLUtesselator * tobj
 the tessellation object


Detailed Description

Tesselates faces, using glu


Constructor & Destructor Documentation

TessPoly::TessPoly  
 

Sets up everything for basic tessellation. It creates the tessellation objects and specifies the callback functions. GLU_TESS_BEGIN and GLU_TESS_END are pointed to the OpenGL functions glBegin( ) and glEnd( ), respectively. GLU_TESS_COMBINE is associated with a user-defined function, combineCallback( ), which will be defined later. GLU_TESS_VERTEX is also associated with a user-defined function, vertexCallback, which will also be defined and explained later.


Member Function Documentation

int TessPoly::beginContour void   
 

TessPoly::Begin_Contour( ) initializes a new contour of the current polygon.

int TessPoly::beginPolygon void   
 

TessPoly::Begin_Polygon( ) initializes a new polygon.

int TessPoly::end void   
 

TessPoly::End( ) deletes the tessellation object.

int TessPoly::endContour void   
 

TessPoly::End_Contour( ) ends the current contour.

int TessPoly::endPolygon void   
 

TessPoly::End_Polygon( ) ends a polygon.

int TessPoly::renderContour double    obj_data[][6],
GLuint    num_vertices
 

TessPoly::Render_Contour( ) renders a full contour of a polygon. obj_data refers to the array that contains all the vertex data for the contour. For what we need, the vertex data will include the vertex coordinate and color value. num_vertices is the number of vertices for the contour.

int TessPoly::setWindingRule GLenum    winding_rule
 

TessPoly::Set_Winding_Rule( ) simply sets the winding rule to the value of winding_rule for the current polygon.


Field Documentation

GLUtesselator* TessPoly::tobj [private]
 

the tessellation object


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 16:32:55 2004 for POVAMA by doxygen1.2.18