Classes | Macros | Enumerations | Functions
gpc.h File Reference
#include <cstdio>

Go to the source code of this file.

Classes

struct  gpc_vertex
 
struct  gpc_vertex_list
 
struct  gpc_polygon
 
struct  gpc_tristrip
 

Macros

#define GPC_EPSILON   (DBL_EPSILON)
 
#define GPC_VERSION   "2.32"
 

Enumerations

enum  gpc_op { GPC_DIFF, GPC_INT, GPC_XOR, GPC_UNION }
 

Functions

int gpc_polygon_clip (gpc_op set_operation, gpc_polygon *subject_polygon, gpc_polygon *clip_polygon, gpc_polygon *result_polygon)
 
void gpc_free_polygon (gpc_polygon *polygon)
 

Macro Definition Documentation

◆ GPC_EPSILON

#define GPC_EPSILON   (DBL_EPSILON)

Definition at line 48 of file gpc.h.

◆ GPC_VERSION

#define GPC_VERSION   "2.32"

Definition at line 50 of file gpc.h.

Enumeration Type Documentation

◆ gpc_op

enum gpc_op
Enumerator
GPC_DIFF 
GPC_INT 
GPC_XOR 
GPC_UNION 

Definition at line 62 of file gpc.h.

Function Documentation

◆ gpc_free_polygon()

void gpc_free_polygon ( gpc_polygon polygon)

◆ gpc_polygon_clip()

int gpc_polygon_clip ( gpc_op  set_operation,
gpc_polygon subject_polygon,
gpc_polygon clip_polygon,
gpc_polygon result_polygon 
)