QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
surfaces.c File Reference

Macros

#define EDGEFACE_CHUNK   4096
 
#define NUM_HASH   4096
 
#define POINT_EPSILON   0.01
 

Typedefs

typedef struct hashvert_s hashvert_t
 

Functions

face_tAllocFace (void)
 Allocate a new face. More...
 
surface_tAllocSurface (void)
 Allocate a new surface. More...
 
void FreeFace (face_t *f)
 Free a face. More...
 
void FreeSurface (surface_t *s)
 Free a surface. More...
 
struct surface_sGatherNodeFaces (struct node_s *headnode)
 Free the current node tree and return a new chain of the surfaces that have inside faces. More...
 
void MakeFaceEdges (struct node_s *headnode)
 Give edges to all the faces in the bsp tree. More...
 
void SubdivideFace (struct visfacet_s *f, struct visfacet_s **prevptr)
 Split any faces that are too big. More...
 

Variables

int c_activefaces
 
int c_activesurfaces
 
int c_cornerverts
 
int c_peakfaces
 
int c_peaksurfaces
 
int c_tryedges
 
edgeface_tedgefaces = 0
 
int firstmodeledge = 1
 
int firstmodelface
 
hashvert_thashverts [NUM_HASH]
 
hashvert_thvert_p
 
hashvert_t hvertex [MAX_MAP_VERTS]
 
surface_t newcopy_t
 
int numedgefaces = 0
 
int subdivides