#include "bsp.h"
Go to the source code of this file.
Functions | |
int | FindMiptex (const char *name) |
static void | TextureAxisFromPlane (plane_t *pln, vec3_t xv, vec3_t yv, qboolean isTerrain) |
int | TexinfoForBrushTexture (plane_t *plane, brush_texture_t *bt, const vec3_t origin, qboolean isTerrain) |
Variables | |
static int | nummiptex = 0 |
textureref_t | textureref [MAX_MAP_TEXTURES] |
static const vec3_t | baseaxis [18] |
Definition in file textures.c.
int FindMiptex | ( | const char * | name | ) |
Definition at line 37 of file textures.c.
References i, MAX_MAP_TEXTURES, nummiptex, Q_strncpyz(), and Sys_Error().
Referenced by ParseBrush().
int TexinfoForBrushTexture | ( | plane_t * | plane, | |
brush_texture_t * | bt, | |||
const vec3_t | origin, | |||
qboolean | isTerrain | |||
) |
Definition at line 91 of file textures.c.
References curTile, DotProduct, i, MAX_MAP_TEXINFO, brush_texture_s::name, dMapTile_t::numtexinfo, Q_strncpyz(), brush_texture_s::rotate, brush_texture_s::scale, brush_texture_s::shift, shift, brush_texture_s::surfaceFlags, texinfo_s::surfaceFlags, sv, Sys_Error(), dMapTile_t::texinfo, texinfo_s::texture, TextureAxisFromPlane(), torad, brush_texture_s::value, texinfo_s::value, texinfo_s::vecs, and VectorScale.
Referenced by AdjustBrushesForOrigin(), and ParseBrush().
static void TextureAxisFromPlane | ( | plane_t * | pln, | |
vec3_t | xv, | |||
vec3_t | yv, | |||
qboolean | isTerrain | |||
) | [static] |
Definition at line 64 of file textures.c.
References baseaxis, DotProduct, i, plane_s::normal, and VectorCopy.
Referenced by TexinfoForBrushTexture().
{ {0,0,1}, {1,0,0}, {0,-1,0}, {0,0,-1}, {1,0,0}, {0,-1,0}, {1,0,0}, {0,1,0}, {0,0,-1}, {-1,0,0}, {0,1,0}, {0,0,-1}, {0,1,0}, {1,0,0}, {0,0,-1}, {0,-1,0}, {1,0,0}, {0,0,-1} }
Definition at line 54 of file textures.c.
Referenced by TextureAxisFromPlane().
int nummiptex = 0 [static] |
Definition at line 28 of file textures.c.
Referenced by FindMiptex().
textureref_t textureref[MAX_MAP_TEXTURES] |
Definition at line 29 of file textures.c.
Referenced by GenerateFootstepList(), and GenerateMaterialFile().