Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
polytess.c File Reference
#include "polytess.h"
#include <cgraph/alloc.h>
#include <stddef.h>
#include <xdot/xdot.h>
Include dependency graph for polytess.c:

Go to the source code of this file.

Macros

#define CALLBACK
 
#define MAKE_GLU_CALLBACK(f)   ((void (*)(void))(f))
 

Functions

static void CALLBACK combineCallback (double coords[3], double *vertex_data[4], float weight[4], double **dataOut)
 
static void CALLBACK vertexCallback (void *vertex)
 
static GLUtesselator * Init (void)
 
static void Set_Winding_Rule (GLUtesselator *tobj, GLenum winding_rule)
 
static void Render_Contour2 (GLUtesselator *tobj, sdot_op *p)
 
static void Begin_Polygon (GLUtesselator *tobj)
 
static void End_Polygon (GLUtesselator *tobj)
 
static void Begin_Contour (GLUtesselator *tobj)
 
static void End_Contour (GLUtesselator *tobj)
 
void drawTessPolygon (sdot_op *p)
 

Variables

tessPoly TP
 

Macro Definition Documentation

◆ CALLBACK

#define CALLBACK

Definition at line 18 of file polytess.c.

◆ MAKE_GLU_CALLBACK

#define MAKE_GLU_CALLBACK (   f)    ((void (*)(void))(f))

Definition at line 56 of file polytess.c.

Function Documentation

◆ Begin_Contour()

static void Begin_Contour ( GLUtesselator *  tobj)
static

Definition at line 100 of file polytess.c.

Referenced by drawTessPolygon().

Here is the caller graph for this function:

◆ Begin_Polygon()

static void Begin_Polygon ( GLUtesselator *  tobj)
static

Definition at line 92 of file polytess.c.

References NULL.

Referenced by drawTessPolygon().

Here is the caller graph for this function:

◆ combineCallback()

static void CALLBACK combineCallback ( double  coords[3],
double *  vertex_data[4],
float  weight[4],
double **  dataOut 
)
static

Definition at line 20 of file polytess.c.

References gv_calloc().

Referenced by Init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawTessPolygon()

void drawTessPolygon ( sdot_op p)

Definition at line 109 of file polytess.c.

References Begin_Contour(), Begin_Polygon(), End_Contour(), End_Polygon(), Init(), Render_Contour2(), Set_Winding_Rule(), tessPoly::tobj, TP, and tessPoly::windingRule.

Referenced by DrawPolygon().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ End_Contour()

static void End_Contour ( GLUtesselator *  tobj)
static

Definition at line 104 of file polytess.c.

Referenced by drawTessPolygon().

Here is the caller graph for this function:

◆ End_Polygon()

static void End_Polygon ( GLUtesselator *  tobj)
static

Definition at line 96 of file polytess.c.

Referenced by drawTessPolygon().

Here is the caller graph for this function:

◆ Init()

static GLUtesselator * Init ( void  )
static

Definition at line 59 of file polytess.c.

References combineCallback(), MAKE_GLU_CALLBACK, and vertexCallback().

Referenced by drawTessPolygon().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Render_Contour2()

static void Render_Contour2 ( GLUtesselator *  tobj,
sdot_op p 
)
static

Definition at line 77 of file polytess.c.

References xdot_polyline::cnt, topview::global_z, gv_calloc(), sdot_op::op, _xdot_op::polygon, xdot_polyline::pts, _ViewInfo::Topview, _xdot_op::u, view, xdot_point::x, xdot_point::y, and xdot_point::z.

Referenced by drawTessPolygon().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Set_Winding_Rule()

static void Set_Winding_Rule ( GLUtesselator *  tobj,
GLenum  winding_rule 
)
static

Definition at line 71 of file polytess.c.

Referenced by drawTessPolygon().

Here is the caller graph for this function:

◆ vertexCallback()

static void CALLBACK vertexCallback ( void *  vertex)
static

Definition at line 40 of file polytess.c.

Referenced by Init().

Here is the caller graph for this function:

Variable Documentation

◆ TP

Definition at line 15 of file polytess.c.

Referenced by drawTessPolygon().