textures.c File Reference

#include "bsp.h"
Include dependency graph for textures.c:

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]

Detailed Description

Definition in file textures.c.


Function Documentation

int FindMiptex ( const char *  name  ) 
Returns:
-1 means that the texture was not found
See also:
TexinfoForBrushTexture
ParseBrush

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 
)
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().


Variable Documentation

const vec3_t baseaxis[18] [static]
Initial value:
{
{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().


Generated by  doxygen 1.6.2