Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
render.c File Reference
#include "gluos.h"
#include <assert.h>
#include <stddef.h>
#include "mesh.h"
#include "tess.h"
#include "render.h"
Include dependency graph for render.c:

Classes

struct  FaceCount
 

Macros

#define AddToTrail(f, t)   ((f)->trail = (t), (t) = (f), (f)->marked = TRUE)
 
#define FALSE   0
 
#define FreeTrail(t)
 
#define IsEven(n)   (((n) & 1) == 0)
 
#define Marked(f)   (! (f)->inside || (f)->marked)
 
#define SIGN_INCONSISTENT   2
 
#define TRUE   1
 

Functions

void __gl_renderBoundary (GLUtesselator *tess, GLUmesh *mesh)
 
GLboolean __gl_renderCache (GLUtesselator *tess)
 
void __gl_renderMesh (GLUtesselator *tess, GLUmesh *mesh)
 
static int ComputeNormal (GLUtesselator *tess, GLdouble norm[3], int check)
 
static struct FaceCount MaximumFan (GLUhalfEdge *eOrig)
 
static struct FaceCount MaximumStrip (GLUhalfEdge *eOrig)
 
static void RenderFan (GLUtesselator *tess, GLUhalfEdge *eStart, long size)
 
static void RenderLonelyTriangles (GLUtesselator *tess, GLUface *head)
 
static void RenderMaximumFaceGroup (GLUtesselator *tess, GLUface *fOrig)
 
static void RenderStrip (GLUtesselator *tess, GLUhalfEdge *eStart, long size)
 
static void RenderTriangle (GLUtesselator *tess, GLUhalfEdge *eStart, long size)
 

Macro Definition Documentation

◆ AddToTrail

#define AddToTrail (   f,
 
)    ((f)->trail = (t), (t) = (f), (f)->marked = TRUE)

Definition at line 148 of file render.c.

◆ FALSE

#define FALSE   0

Definition at line 46 of file render.c.

◆ FreeTrail

#define FreeTrail (   t)
Value:
do { \
while( (t) != NULL ) { \
(t)->marked = FALSE; t = (t)->trail; \
} \
} while(0) /* absorb trailing semicolon */
#define FALSE
Definition render.c:46

Definition at line 150 of file render.c.

◆ IsEven

#define IsEven (   n)    (((n) & 1) == 0)

Definition at line 183 of file render.c.

◆ Marked

#define Marked (   f)    (! (f)->inside || (f)->marked)

Definition at line 146 of file render.c.

◆ SIGN_INCONSISTENT

#define SIGN_INCONSISTENT   2

Definition at line 363 of file render.c.

◆ TRUE

#define TRUE   1

Definition at line 43 of file render.c.

Function Documentation

◆ __gl_renderBoundary()

void __gl_renderBoundary ( GLUtesselator tess,
GLUmesh mesh 
)

Definition at line 342 of file render.c.

◆ __gl_renderCache()

GLboolean __gl_renderCache ( GLUtesselator tess)

Definition at line 444 of file render.c.

◆ __gl_renderMesh()

void __gl_renderMesh ( GLUtesselator tess,
GLUmesh mesh 
)

Definition at line 82 of file render.c.

◆ ComputeNormal()

static int ComputeNormal ( GLUtesselator tess,
GLdouble  norm[3],
int  check 
)
static

Definition at line 365 of file render.c.

◆ MaximumFan()

static struct FaceCount MaximumFan ( GLUhalfEdge eOrig)
static

Definition at line 158 of file render.c.

◆ MaximumStrip()

static struct FaceCount MaximumStrip ( GLUhalfEdge eOrig)
static

Definition at line 185 of file render.c.

◆ RenderFan()

static void RenderFan ( GLUtesselator tess,
GLUhalfEdge eStart,
long  size 
)
static

Definition at line 284 of file render.c.

◆ RenderLonelyTriangles()

static void RenderLonelyTriangles ( GLUtesselator tess,
GLUface head 
)
static

Definition at line 249 of file render.c.

◆ RenderMaximumFaceGroup()

static void RenderMaximumFaceGroup ( GLUtesselator tess,
GLUface fOrig 
)
static

Definition at line 110 of file render.c.

◆ RenderStrip()

static void RenderStrip ( GLUtesselator tess,
GLUhalfEdge eStart,
long  size 
)
static

Definition at line 307 of file render.c.

◆ RenderTriangle()

static void RenderTriangle ( GLUtesselator tess,
GLUhalfEdge eStart,
long  size 
)
static

Definition at line 238 of file render.c.