Brush model header file. More...
#include "r_entity.h"
#include "r_model_alias.h"
#include "r_model_brush.h"
#include "r_model_dpm.h"
#include "r_model_md2.h"
#include "r_model_md3.h"
#include "r_model_obj.h"
Go to the source code of this file.
Data Structures | |
struct | model_s |
Typedefs | |
typedef struct model_s | model_t |
Enumerations | |
enum | modtype_t { mod_bad, mod_bsp, mod_bsp_submodel, mod_alias_md2, mod_alias_md3, mod_alias_dpm, mod_obj } |
All supported model formats. More... | |
Functions | |
void | R_ModClearAll (void) |
void | R_ModModellist_f (void) |
Prints all loaded models. | |
void | R_ModDrawNullModel (entity_t *e) |
image_t * | R_AliasModelState (const model_t *mod, int *mesh, int *frame, int *oldFrame, int *skin) |
image_t * | R_AliasModelGetSkin (const char *modelFileName, const char *skin) |
void | R_DrawAliasModel (entity_t *e) |
Draw the models in the entity list. | |
void | R_ShutdownModels (qboolean complete) |
Frees the model pool. | |
void | R_ModReloadSurfacesArrays (void) |
Variables | |
model_t * | r_mapTiles [MAX_MAPTILES] |
The world model(s). | |
int | r_numMapTiles |
model_t | r_models [MAX_MOD_KNOWN] |
int | r_numModels |
model_t | r_modelsInline [MAX_MOD_KNOWN] |
int | r_numModelsInline |
Brush model header file.
Definition in file r_model.h.
enum modtype_t |
All supported model formats.
image_t* R_AliasModelGetSkin | ( | const char * | modelFileName, | |
const char * | skin | |||
) |
Definition at line 498 of file r_model_alias.c.
References Com_ReplaceFilename(), it_skin, MAX_QPATH, and R_FindImage().
Referenced by MD2Check(), MD2SkinFix(), R_LoadObjSkin(), R_ModLoadAliasDPMModel(), R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), and R_ModLoadAliasMD3Model().
image_t* R_AliasModelState | ( | const model_t * | mod, | |
int * | mesh, | |||
int * | frame, | |||
int * | oldFrame, | |||
int * | skin | |||
) |
Definition at line 509 of file r_model_alias.c.
References model_s::alias, Com_Error(), Com_Printf(), ERR_DROP, mAliasModel_s::meshes, model_s::name, mAliasModel_s::num_frames, mAliasModel_s::num_meshes, mAliasMesh_s::num_skins, mAliasSkin_s::skin, mAliasMesh_s::skins, and image_s::texnum.
Referenced by R_DrawEntities(), R_DrawModelDirect(), and R_DrawModelParticle().
void R_DrawAliasModel | ( | entity_t * | e | ) |
Draw the models in the entity list.
Definition at line 430 of file r_mesh.c.
References i, mAliasModel_s::meshes, mAliasSkin_s::skin, and mAliasMesh_s::skins.
Referenced by R_DrawMeshEntities().
void R_ModClearAll | ( | void | ) |
void R_ModDrawNullModel | ( | entity_t * | e | ) |
void R_ModModellist_f | ( | void | ) |
Prints all loaded models.
Definition at line 42 of file r_model.c.
References model_s::alias, Com_Printf(), i, mAliasModel_s::meshes, mod_alias_dpm, mod_alias_md2, mod_alias_md3, mod_bsp, mod_bsp_submodel, mod_obj, mAliasSkin_s::name, model_s::name, mAliasModel_s::num_meshes, mAliasMesh_s::num_skins, mAliasMesh_s::num_tris, r_numMapTiles, r_numModels, r_numModelsInline, r_numModelsStatic, mAliasSkin_s::skin, mAliasMesh_s::skins, image_s::texnum, image_s::type, and model_s::type.
void R_ModReloadSurfacesArrays | ( | void | ) |
Definition at line 1087 of file r_model_brush.c.
References model_s::bsp, i, lengthof, Mem_Free, R_LoadSurfacesArrays(), r_mapTiles, r_numMapTiles, and mBspModel_s::sorted_surfaces.
Referenced by UI_MaterialEditorChangeValue_f().
void R_ShutdownModels | ( | qboolean | complete | ) |
Frees the model pool.
complete | If this is true the static mesh models are freed, too |
Definition at line 261 of file r_model.c.
References model_s::bsp, i, mBspModel_s::lmtexcoord_buffer, Mem_FreePool, Mem_FreeTag, mBspModel_s::normal_buffer, r_numModels, r_numModelsStatic, mBspModel_s::tangent_buffer, mBspModel_s::texcoord_buffer, mBspModel_s::vertex_buffer, vid_lightPool, and vid_modelPool.
Referenced by CL_Disconnect(), and R_Shutdown().
model_t* r_mapTiles[MAX_MAPTILES] |
The world model(s).
Definition at line 32 of file r_model.c.
Referenced by R_CreateMaterialData(), R_DrawBspNormals(), R_DrawSurfaceStage(), R_GetLevelSurfaceLists(), R_LoadSurfacesArrays(), R_ModAddMapTile(), R_ModReloadSurfacesArrays(), R_RecursiveWorldNode(), R_RenderFrame(), and R_SetSurfaceState().
Definition at line 28 of file r_model.c.
Referenced by R_ModAddMapTile().
model_t r_modelsInline[MAX_MOD_KNOWN] |
Definition at line 36 of file r_model.c.
Referenced by R_CreateMaterialData(), R_LoadSurfacesArrays(), and R_SetupSubmodels().
int r_numMapTiles |
Definition at line 33 of file r_model.c.
Referenced by R_CreateMaterialData(), R_GetLevelSurfaceLists(), R_LoadSurfacesArrays(), R_ModAddMapTile(), R_ModBeginLoading(), R_ModLoadSurfaces(), R_ModModellist_f(), R_ModReloadSurfacesArrays(), R_RenderFrame(), R_SetupSubmodels(), and R_Trace().
int r_numModels |
Definition at line 29 of file r_model.c.
Referenced by R_ModAddMapTile(), R_ModForName(), R_ModModellist_f(), R_ShutdownModels(), and R_SwitchModelMemPoolTag().
Definition at line 37 of file r_model.c.
Referenced by R_CreateMaterialData(), R_LoadSurfacesArrays(), R_ModBeginLoading(), R_ModForName(), R_ModModellist_f(), and R_SetupSubmodels().