![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | patchinfo_t |
Macros | |
#define | PATCH_LOD_COLLISION 0 |
#define | PATCH_LOD_VISUAL 1 |
#define | PATCH_LODS_NUM 2 |
Functions | |
int | Q3PatchAdjustTesselation (int numcomponents, patchinfo_t *patch1, float *patchvertices1, patchinfo_t *patch2, float *patchvertices2) |
int | Q3PatchDimForTess (int size, int tess) |
void | Q3PatchTesselateFloat (int numcomponents, int outputstride, float *outputvertices, int patchwidth, int patchheight, int inputstride, float *patchvertices, int tesselationwidth, int tesselationheight) |
int | Q3PatchTesselationOnX (int patchwidth, int patchheight, int components, const float *in, float tolerance) |
int | Q3PatchTesselationOnY (int patchwidth, int patchheight, int components, const float *in, float tolerance) |
void | Q3PatchTriangleElements (int *elements, int width, int height, int firstvertex) |
#define PATCH_LOD_COLLISION 0 |
Definition at line 5 of file curves.h.
Referenced by Mod_Q3BSP_LoadFaces().
#define PATCH_LOD_VISUAL 1 |
Definition at line 6 of file curves.h.
Referenced by Mod_Q3BSP_LoadFaces().
#define PATCH_LODS_NUM 2 |
Definition at line 4 of file curves.h.
Referenced by Q3PatchAdjustTesselation().
int Q3PatchAdjustTesselation | ( | int | numcomponents, |
patchinfo_t * | patch1, | ||
float * | patchvertices1, | ||
patchinfo_t * | patch2, | ||
float * | patchvertices2 ) |
Definition at line 329 of file curves.c.
References FindEqualOddVertexInArray(), GetSide(), i, patchinfo_t::lods, PATCH_LODS_NUM, SIDE_INVALID, SIDE_X, patchinfo_t::xsize, patchinfo_t::xtess, patchinfo_t::ysize, and patchinfo_t::ytess.
Referenced by Mod_Q3BSP_LoadFaces().
Definition at line 51 of file curves.c.
References size.
Referenced by Mod_Q3BSP_LoadFaces(), and Q3PatchTesselateFloat().
void Q3PatchTesselateFloat | ( | int | numcomponents, |
int | outputstride, | ||
float * | outputvertices, | ||
int | patchwidth, | ||
int | patchheight, | ||
int | inputstride, | ||
float * | patchvertices, | ||
int | tesselationwidth, | ||
int | tesselationheight ) |
Definition at line 64 of file curves.c.
References a, b, float, max, px, Q3PatchDimForTess(), v, x, and y.
Referenced by Mod_Q3BSP_LoadFaces().
int Q3PatchTesselationOnX | ( | int | patchwidth, |
int | patchheight, | ||
int | components, | ||
const float * | in, | ||
float | tolerance ) |
Definition at line 232 of file curves.c.
References Q3PatchTesselation(), Squared3xCurveArea(), x, and y.
Referenced by Mod_Q3BSP_LoadFaces().
int Q3PatchTesselationOnY | ( | int | patchwidth, |
int | patchheight, | ||
int | components, | ||
const float * | in, | ||
float | tolerance ) |
Definition at line 252 of file curves.c.
References Q3PatchTesselation(), Squared3xCurveArea(), x, and y.
Referenced by Mod_Q3BSP_LoadFaces().
Definition at line 399 of file curves.c.
References height, width, x, and y.
Referenced by Mod_Q3BSP_LoadFaces().