Lines Matching defs:tess
39 #include "tess.h"
63 static void RenderFan( GLUtesselator *tess, GLUhalfEdge *eStart, long size );
64 static void RenderStrip( GLUtesselator *tess, GLUhalfEdge *eStart, long size );
65 static void RenderTriangle( GLUtesselator *tess, GLUhalfEdge *eStart,
68 static void RenderMaximumFaceGroup( GLUtesselator *tess, GLUface *fOrig );
69 static void RenderLonelyTriangles( GLUtesselator *tess, GLUface *head );
75 /* __gl_renderMesh( tess, mesh ) takes a mesh and breaks it into triangle
82 void __gl_renderMesh( GLUtesselator *tess, GLUmesh *mesh )
87 tess->lonelyTriList = NULL;
99 RenderMaximumFaceGroup( tess, f );
103 if( tess->lonelyTriList != NULL ) {
104 RenderLonelyTriangles( tess, tess->lonelyTriList );
105 tess->lonelyTriList = NULL;
110 static void RenderMaximumFaceGroup( GLUtesselator *tess, GLUface *fOrig )
126 if( ! tess->flagBoundary ) {
135 (*(max.render))( tess, max.eStart, max.size );
238 static void RenderTriangle( GLUtesselator *tess, GLUhalfEdge *e, long size )
244 AddToTrail( e->Lface, tess->lonelyTriList );
248 static void RenderLonelyTriangles( GLUtesselator *tess, GLUface *f )
264 if( tess->flagBoundary ) {
283 static void RenderFan( GLUtesselator *tess, GLUhalfEdge *e, long size )
305 static void RenderStrip( GLUtesselator *tess, GLUhalfEdge *e, long size )
335 /* __gl_renderBoundary( tess, mesh ) takes a mesh, and outputs one
339 void __gl_renderBoundary( GLUtesselator *tess, GLUmesh *mesh )
362 static int ComputeNormal( GLUtesselator *tess, GLdouble norm[3], int check )
372 CachedVertex *v0 = tess->cache;
373 CachedVertex *vn = v0 + tess->cacheCount;
434 /* __gl_renderCache( tess ) takes a single contour and tries to render it
441 GLboolean __gl_renderCache( GLUtesselator *tess )
443 CachedVertex *v0 = tess->cache;
444 CachedVertex *vn = v0 + tess->cacheCount;
449 if( tess->cacheCount < 3 ) {
454 norm[0] = tess->normal[0];
455 norm[1] = tess->normal[1];
456 norm[2] = tess->normal[2];
458 ComputeNormal( tess, norm, FALSE );
461 sign = ComputeNormal( tess, norm, TRUE );
472 switch( tess->windingRule ) {
486 CALL_BEGIN_OR_BEGIN_DATA( tess->boundaryOnly ? GL_LINE_LOOP
487 : (tess->cacheCount > 3) ? GL_TRIANGLE_FAN