CFx SDK Documentation  2023 SP0
Classes | Macros | Enumerations | Functions
avgpc.h File Reference
#include <stdio.h>
#include "Ge/GeExport.h"

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

void GE_TOOLKIT_EXPORT gpc_read_polygon (FILE *infile_ptr, int read_hole_flags, gpc_polygon *polygon)
 
void GE_TOOLKIT_EXPORT gpc_write_polygon (FILE *outfile_ptr, int write_hole_flags, gpc_polygon *polygon)
 
void GE_TOOLKIT_EXPORT gpc_add_contour (gpc_polygon *polygon, gpc_vertex_list *contour, int hole)
 
void GE_TOOLKIT_EXPORT gpc_polygon_clip (gpc_op set_operation, gpc_polygon *subject_polygon, gpc_polygon *clip_polygon, gpc_polygon *result_polygon)
 
int GE_TOOLKIT_EXPORT gpc_polygon_clip_ex (gpc_op set_operation, gpc_polygon *subject_polygon, gpc_polygon *clip_polygon, gpc_polygon *result_polygon)
 
void GE_TOOLKIT_EXPORT gpc_tristrip_clip (gpc_op set_operation, gpc_polygon *subject_polygon, gpc_polygon *clip_polygon, gpc_tristrip *result_tristrip)
 
void GE_TOOLKIT_EXPORT gpc_polygon_to_tristrip (gpc_polygon *polygon, gpc_tristrip *tristrip)
 
void GE_TOOLKIT_EXPORT gpc_free_polygon (gpc_polygon *polygon)
 
void GE_TOOLKIT_EXPORT gpc_free_tristrip (gpc_tristrip *tristrip)
 

Macro Definition Documentation

◆ GPC_EPSILON

#define GPC_EPSILON   (DBL_EPSILON)

Definition at line 79 of file avgpc.h.

◆ GPC_VERSION

#define GPC_VERSION   "2.32"

Definition at line 81 of file avgpc.h.

Enumeration Type Documentation

◆ gpc_op

enum gpc_op
Enumerator
GPC_DIFF 
GPC_INT 
GPC_XOR 
GPC_UNION 

Definition at line 90 of file avgpc.h.

Function Documentation

◆ gpc_add_contour()

void GE_TOOLKIT_EXPORT gpc_add_contour ( gpc_polygon polygon,
gpc_vertex_list contour,
int  hole 
)

◆ gpc_free_polygon()

void GE_TOOLKIT_EXPORT gpc_free_polygon ( gpc_polygon polygon)

◆ gpc_free_tristrip()

void GE_TOOLKIT_EXPORT gpc_free_tristrip ( gpc_tristrip tristrip)

◆ gpc_polygon_clip()

void GE_TOOLKIT_EXPORT gpc_polygon_clip ( gpc_op  set_operation,
gpc_polygon subject_polygon,
gpc_polygon clip_polygon,
gpc_polygon result_polygon 
)

◆ gpc_polygon_clip_ex()

int GE_TOOLKIT_EXPORT gpc_polygon_clip_ex ( gpc_op  set_operation,
gpc_polygon subject_polygon,
gpc_polygon clip_polygon,
gpc_polygon result_polygon 
)

◆ gpc_polygon_to_tristrip()

void GE_TOOLKIT_EXPORT gpc_polygon_to_tristrip ( gpc_polygon polygon,
gpc_tristrip tristrip 
)

◆ gpc_read_polygon()

void GE_TOOLKIT_EXPORT gpc_read_polygon ( FILE *  infile_ptr,
int  read_hole_flags,
gpc_polygon polygon 
)

◆ gpc_tristrip_clip()

void GE_TOOLKIT_EXPORT gpc_tristrip_clip ( gpc_op  set_operation,
gpc_polygon subject_polygon,
gpc_polygon clip_polygon,
gpc_tristrip result_tristrip 
)

◆ gpc_write_polygon()

void GE_TOOLKIT_EXPORT gpc_write_polygon ( FILE *  outfile_ptr,
int  write_hole_flags,
gpc_polygon polygon 
)