#include "shared/shared.h"
#include "shared/list.h"
#include "common/common.h"
#include "common/files.h"
#include "system/hunk.h"
#include "format/md2.h"
#include "format/sp2.h"
#include "refresh/images.h"
#include "refresh/models.h"
Go to the source code of this file.
Macros | |
#define | MAX_RMODELS (MAX_MODELS * 2) |
Functions | |
static model_t * | MOD_Alloc (void) |
static model_t * | MOD_Find (const char *name) |
static void | MOD_List_f (void) |
void | MOD_FreeUnused (void) |
void | MOD_FreeAll (void) |
qerror_t | MOD_ValidateMD2 (dmd2header_t *header, size_t length) |
static model_class_t | get_model_class (const char *name) |
static qerror_t | MOD_LoadSP2 (model_t *model, const void *rawdata, size_t length) |
qhandle_t | R_RegisterModel (const char *name) |
model_t * | MOD_ForHandle (qhandle_t h) |
void | MOD_Init (void) |
void | MOD_Shutdown (void) |
Variables | |
model_t | r_models [MAX_RMODELS] |
int | r_numModels |
cvar_t * | vid_rtx |
|
static |
|
static |
|
static |
model_t* MOD_ForHandle | ( | qhandle_t | h | ) |
Definition at line 430 of file models.c.
Referenced by CL_AddPacketEntities(), CL_AddViewWeapon(), CL_PlainExplosion(), CL_RegisterTEntModels(), GL_DrawEntities(), prepare_entities(), R_DrawEntities(), update_transparency(), and write_sprite_geometry().
Definition at line 105 of file models.c.
Referenced by R_EndRegistration(), R_EndRegistration_GL(), and R_EndRegistration_RTX().
|
static |
Definition at line 459 of file models.c.
Referenced by R_Shutdown(), R_Shutdown_GL(), and R_Shutdown_RTX().
qerror_t MOD_ValidateMD2 | ( | dmd2header_t * | header, |
size_t | length | ||
) |
Definition at line 142 of file models.c.
Referenced by MOD_LoadMD2(), MOD_LoadMD2_GL(), and MOD_LoadMD2_RTX().
qhandle_t R_RegisterModel | ( | const char * | name | ) |
Definition at line 305 of file models.c.
Referenced by CL_LoadClientinfo(), CL_PrepRefresh(), CL_RegisterTEntModels(), CL_UpdateConfigstring(), LOC_AddLocationsToScene(), ReloadMedia(), and V_Gun_Model_f().
model_t r_models[MAX_RMODELS] |
Definition at line 39 of file models.c.
Referenced by MOD_Alloc(), MOD_Find(), MOD_ForHandle(), MOD_FreeAll(), MOD_FreeUnused(), MOD_List_f(), R_RegisterModel(), and vkpt_vertex_buffer_upload_models_to_staging().
int r_numModels |
Definition at line 40 of file models.c.
Referenced by MOD_Alloc(), MOD_Find(), MOD_ForHandle(), MOD_FreeAll(), MOD_FreeUnused(), MOD_Init(), and MOD_List_f().
cvar_t* vid_rtx |
Definition at line 30 of file refresh.c.
Referenced by CL_AddExplosions(), CL_AddPacketEntities(), CL_AddViewWeapon(), CL_InitRefresh(), CL_MuzzleFlash(), CL_PrepRefresh(), R_RegisterModel(), and SCR_DrawFPS().