icculus quake2 doxygen
1.0 dev
|
|
Go to the source code of this file.
|
void | Mod_LoadSpriteModel (model_t *mod, void *buffer) |
|
void | Mod_LoadBrushModel (model_t *mod, void *buffer) |
|
void | Mod_LoadAliasModel (model_t *mod, void *buffer) |
|
model_t * | Mod_LoadModel (model_t *mod, qboolean crash) |
|
mleaf_t * | Mod_PointInLeaf (vec3_t p, model_t *model) |
|
byte * | Mod_DecompressVis (byte *in, model_t *model) |
|
byte * | Mod_ClusterPVS (int cluster, model_t *model) |
|
void | Mod_Modellist_f (void) |
|
void | Mod_Init (void) |
|
model_t * | Mod_ForName (char *name, qboolean crash) |
|
void | Mod_LoadLighting (lump_t *l) |
|
void | Mod_LoadVisibility (lump_t *l) |
|
void | Mod_LoadVertexes (lump_t *l) |
|
float | RadiusFromBounds (vec3_t mins, vec3_t maxs) |
|
void | Mod_LoadSubmodels (lump_t *l) |
|
void | Mod_LoadEdges (lump_t *l) |
|
void | Mod_LoadTexinfo (lump_t *l) |
|
void | CalcSurfaceExtents (msurface_t *s) |
|
void | GL_BuildPolygonFromSurface (msurface_t *fa) |
|
void | GL_CreateSurfaceLightmap (msurface_t *surf) |
|
void | GL_EndBuildingLightmaps (void) |
|
void | GL_BeginBuildingLightmaps (model_t *m) |
|
void | Mod_LoadFaces (lump_t *l) |
|
void | Mod_SetParent (mnode_t *node, mnode_t *parent) |
|
void | Mod_LoadNodes (lump_t *l) |
|
void | Mod_LoadLeafs (lump_t *l) |
|
void | Mod_LoadMarksurfaces (lump_t *l) |
|
void | Mod_LoadSurfedges (lump_t *l) |
|
void | Mod_LoadPlanes (lump_t *l) |
|
void | R_BeginRegistration (char *model) |
|
struct model_s * | R_RegisterModel (char *name) |
|
void | R_EndRegistration (void) |
|
void | Mod_Free (model_t *mod) |
|
void | Mod_FreeAll (void) |
|
◆ MAX_MOD_KNOWN
#define MAX_MOD_KNOWN 512 |
◆ CalcSurfaceExtents()
Definition at line 497 of file gl_model.c.
499 float mins[2], maxs[2], val;
503 int bmins[2], bmaxs[2];
505 mins[0] = mins[1] = 999999;
506 maxs[0] = maxs[1] = -99999;
518 for (
j=0 ;
j<2 ;
j++)
520 val =
v->position[0] * tex->
vecs[
j][0] +
521 v->position[1] * tex->
vecs[
j][1] +
522 v->position[2] * tex->
vecs[
j][2] +
531 for (
i=0 ;
i<2 ;
i++)
533 bmins[
i] = floor(mins[
i]/16);
534 bmaxs[
i] = ceil(maxs[
i]/16);
Referenced by Mod_LoadFaces().
◆ GL_BeginBuildingLightmaps()
Definition at line 1572 of file gl_rsurf.c.
1576 unsigned dummy[128*128];
1591 lightstyles[
i].
rgb[0] = 1;
1592 lightstyles[
i].
rgb[1] = 1;
1593 lightstyles[
i].
rgb[2] = 1;
1594 lightstyles[
i].
white = 3;
1648 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
1649 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
1650 qglTexImage2D( GL_TEXTURE_2D,
Referenced by Mod_LoadFaces().
◆ GL_BuildPolygonFromSurface()
◆ GL_CreateSurfaceLightmap()
◆ GL_EndBuildingLightmaps()
◆ Mod_ClusterPVS()
Definition at line 124 of file gl_model.c.
126 if (cluster == -1 || !model->
vis)
◆ Mod_DecompressVis()
◆ Mod_ForName()
◆ Mod_Free()
◆ Mod_FreeAll()
◆ Mod_Init()
◆ Mod_LoadAliasModel()
Definition at line 929 of file gl_model.c.
932 dmdl_t *pinmodel, *pheader;
936 int *pincmd, *poutcmd;
991 for (
j=0 ;
j<3 ;
j++)
1008 memcpy (poutframe->
name, pinframe->
name,
sizeof(poutframe->
name));
1009 for (
j=0 ;
j<3 ;
j++)
1025 pincmd = (
int *) ((
byte *)pinmodel + pheader->
ofs_glcmds);
1026 poutcmd = (
int *) ((
byte *)pheader + pheader->
ofs_glcmds);
Referenced by Mod_ForName().
◆ Mod_LoadBrushModel()
◆ Mod_LoadEdges()
◆ Mod_LoadFaces()
◆ Mod_LoadLeafs()
◆ Mod_LoadLighting()
◆ Mod_LoadMarksurfaces()
◆ Mod_LoadModel()
◆ Mod_LoadNodes()
◆ Mod_LoadPlanes()
◆ Mod_LoadSpriteModel()
◆ Mod_LoadSubmodels()
◆ Mod_LoadSurfedges()
◆ Mod_LoadTexinfo()
◆ Mod_LoadVertexes()
◆ Mod_LoadVisibility()
◆ Mod_Modellist_f()
◆ Mod_PointInLeaf()
◆ Mod_SetParent()
◆ R_BeginRegistration()
void R_BeginRegistration |
( |
char * |
model | ) |
|
◆ R_EndRegistration()
◆ R_RegisterModel()
struct model_s* R_RegisterModel |
( |
char * |
name | ) |
|
◆ RadiusFromBounds()
◆ loadmodel
Definition at line 24 of file gl_model.c.
Referenced by CalcSurfaceExtents(), GL_SubdivideSurface(), Mod_ForName(), Mod_LoadBrushModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadLighting(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVertexes(), and Mod_LoadVisibility().
◆ mod_base
Definition at line 282 of file gl_model.c.
Referenced by Mod_LoadBrushModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadLighting(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVertexes(), and Mod_LoadVisibility().
◆ mod_inline
◆ mod_known
◆ mod_novis
◆ mod_numknown
◆ modfilelen
◆ registration_sequence
int registration_sequence |
void Mod_LoadNodes(lump_t *l)
byte styles[MAXLIGHTMAPS]
void * Hunk_Begin(int maxsize)
short LittleShort(short l)
void Mod_LoadLeafs(lump_t *l)
void Hunk_Free(void *base)
void Mod_LoadVisibility(lump_t *l)
float verts[4][VERTEXSIZE]
int(* FS_LoadFile)(char *name, void **buf)
cvar_t *(* Cvar_Get)(char *name, char *value, int flags)
void GL_FreeUnusedImages(void)
#define MAX_MAP_SURFEDGES
void Mod_LoadEdges(lump_t *l)
msurface_t ** firstmarksurface
byte * Mod_DecompressVis(byte *in, model_t *model)
msurface_t ** marksurfaces
struct mnode_s * children[2]
void GL_CreateSurfaceLightmap(msurface_t *surf)
int registration_sequence
void Mod_LoadVertexes(lump_t *l)
model_t mod_inline[MAX_MOD_KNOWN]
void Mod_LoadTexinfo(lump_t *l)
void(* FS_FreeFile)(void *buf)
void Mod_LoadSpriteModel(model_t *mod, void *buffer)
void Mod_LoadSurfedges(lump_t *l)
int registration_sequence
void(* Con_Printf)(int print_level, char *str,...)
image_t * GL_FindImage(char *name, imagetype_t type)
void GL_EnableMultitexture(qboolean enable)
static void LM_InitBlock(void)
float LittleFloat(float l)
void Mod_LoadLighting(lump_t *l)
float RadiusFromBounds(vec3_t mins, vec3_t maxs)
vec_t VectorLength(vec3_t v)
void GL_BuildPolygonFromSurface(msurface_t *fa)
static qboolean LM_AllocBlock(int w, int h, int *x, int *y)
void GL_EndBuildingLightmaps(void)
void(* Sys_Error)(int err_level, char *str,...)
void Mod_SetParent(mnode_t *node, mnode_t *parent)
byte lightmap_buffer[4 *BLOCK_WIDTH *BLOCK_HEIGHT]
void GL_SubdivideSurface(msurface_t *fa)
int current_lightmap_texture
void CalcSurfaceExtents(msurface_t *s)
#define VectorAdd(a, b, c)
static gllightmapstate_t gl_lms
image_t * skins[MAX_MD2SKINS]
lightstyle_t * lightstyles
model_t * Mod_ForName(char *name, qboolean crash)
unsigned short firstsurface
void GL_BeginBuildingLightmaps(model_t *m)
void Mod_Free(model_t *mod)
int registration_sequence
void Mod_LoadFaces(lump_t *l)
byte mod_novis[MAX_MAP_LEAFS/8]
#define GL_LIGHTMAP_FORMAT
void Mod_LoadAliasModel(model_t *mod, void *buffer)
void R_BuildLightMap(msurface_t *surf, byte *dest, int stride)
void R_SetCacheState(msurface_t *surf)
unsigned short numsurfaces
void GL_SelectTexture(GLenum texture)
void Mod_LoadSubmodels(lump_t *l)
void Mod_LoadBrushModel(model_t *mod, void *buffer)
void Mod_LoadPlanes(lump_t *l)
void * Hunk_Alloc(int size)
void Com_sprintf(char *dest, int size, char *fmt,...)
static void LM_UploadBlock(qboolean dynamic)
int allocated[BLOCK_WIDTH]
model_t mod_known[MAX_MOD_KNOWN]
void Mod_LoadMarksurfaces(lump_t *l)