doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
tritools.cpp File Reference
#include "../../../idlib/precompiled.h"
#include "dmap.h"

Go to the source code of this file.

Functions

mapTri_tAllocTri (void)
 
void FreeTri (mapTri_t *tri)
 
mapTri_tMergeTriLists (mapTri_t *a, mapTri_t *b)
 
void FreeTriList (mapTri_t *a)
 
mapTri_tCopyTriList (const mapTri_t *a)
 
int CountTriList (const mapTri_t *tri)
 
mapTri_tCopyMapTri (const mapTri_t *tri)
 
float MapTriArea (const mapTri_t *tri)
 
mapTri_tRemoveBadTris (const mapTri_t *list)
 
void BoundTriList (const mapTri_t *list, idBounds &b)
 
void DrawTri (const mapTri_t *tri)
 
void FlipTriList (mapTri_t *tris)
 
idWindingWindingForTri (const mapTri_t *tri)
 
void TriVertsFromOriginal (mapTri_t *tri, const mapTri_t *original)
 
mapTri_tWindingToTriList (const idWinding *w, const mapTri_t *originalTri)
 
void ClipTriList (const mapTri_t *list, const idPlane &plane, float epsilon, mapTri_t **front, mapTri_t **back)
 
void PlaneForTri (const mapTri_t *tri, idPlane &plane)
 

Function Documentation

mapTri_t* AllocTri ( void  )

Definition at line 45 of file tritools.cpp.

void BoundTriList ( const mapTri_t list,
idBounds b 
)

Definition at line 191 of file tritools.cpp.

void ClipTriList ( const mapTri_t list,
const idPlane plane,
float  epsilon,
mapTri_t **  front,
mapTri_t **  back 
)

Definition at line 356 of file tritools.cpp.

mapTri_t* CopyMapTri ( const mapTri_t tri)

Definition at line 143 of file tritools.cpp.

mapTri_t* CopyTriList ( const mapTri_t a)

Definition at line 103 of file tritools.cpp.

int CountTriList ( const mapTri_t tri)

Definition at line 125 of file tritools.cpp.

void DrawTri ( const mapTri_t tri)

Definition at line 205 of file tritools.cpp.

void FlipTriList ( mapTri_t tris)

Definition at line 223 of file tritools.cpp.

void FreeTri ( mapTri_t tri)

Definition at line 58 of file tritools.cpp.

void FreeTriList ( mapTri_t a)

Definition at line 89 of file tritools.cpp.

float MapTriArea ( const mapTri_t tri)

Definition at line 157 of file tritools.cpp.

mapTri_t* MergeTriLists ( mapTri_t a,
mapTri_t b 
)

Definition at line 70 of file tritools.cpp.

void PlaneForTri ( const mapTri_t tri,
idPlane plane 
)

Definition at line 385 of file tritools.cpp.

mapTri_t* RemoveBadTris ( const mapTri_t list)

Definition at line 168 of file tritools.cpp.

void TriVertsFromOriginal ( mapTri_t tri,
const mapTri_t original 
)

Definition at line 269 of file tritools.cpp.

idWinding* WindingForTri ( const mapTri_t tri)

Definition at line 250 of file tritools.cpp.

mapTri_t* WindingToTriList ( const idWinding w,
const mapTri_t originalTri 
)

Definition at line 310 of file tritools.cpp.