![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | SIDE_INVALID -1 |
#define | SIDE_X 0 |
#define | SIDE_Y 1 |
Functions | |
static int | FindEqualOddVertexInArray (int numcomponents, float *vertex, float *vertices, int width, int height) |
static int | GetSide (int p1, int p2, int width, int height, int *pointdist) |
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) |
static int | Q3PatchTesselation (float largestsquared3xcurvearea, float tolerance) |
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) |
static float | Squared3xCurveArea (const float *a, const float *control, const float *b, int components) |
#define SIDE_INVALID -1 |
Definition at line 298 of file curves.c.
Referenced by GetSide(), and Q3PatchAdjustTesselation().
#define SIDE_X 0 |
Definition at line 299 of file curves.c.
Referenced by GetSide(), and Q3PatchAdjustTesselation().
|
static |
Definition at line 272 of file curves.c.
References fabs(), height, width, x, and y.
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().
Definition at line 138 of file curves.c.
References f, floor(), log(), and pow().
Referenced by Q3PatchTesselationOnX(), and Q3PatchTesselationOnY().
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().
|
static |
Definition at line 158 of file curves.c.
Referenced by Q3PatchTesselationOnX(), and Q3PatchTesselationOnY().