r_model.h File Reference

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"
Include dependency graph for r_model.h:
This graph shows which files directly or indirectly include this file:

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_tR_AliasModelState (const model_t *mod, int *mesh, int *frame, int *oldFrame, int *skin)
image_tR_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_tr_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

Detailed Description

Brush model header file.

Note:
d*_t structures are on-disk representations
m*_t structures are in-memory

Definition in file r_model.h.


Typedef Documentation

typedef struct model_s model_t

Enumeration Type Documentation

enum modtype_t

All supported model formats.

See also:
mod_extensions
Enumerator:
mod_bad 
mod_bsp 
mod_bsp_submodel 
mod_alias_md2 
mod_alias_md3 
mod_alias_dpm 
mod_obj 

Definition at line 43 of file r_model.h.


Function Documentation

image_t* R_AliasModelGetSkin ( const char *  modelFileName,
const char *  skin 
)
image_t* R_AliasModelState ( const model_t mod,
int *  mesh,
int *  frame,
int *  oldFrame,
int *  skin 
)
void R_DrawAliasModel ( entity_t e  ) 

Draw the models in the entity list.

Note:
this is only called in ca_active or ca_sequence mode
See also:
R_DrawEntities

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   ) 
void R_ModReloadSurfacesArrays ( void   ) 
Todo:
fix this for threaded renderer mode

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.

Parameters:
complete If this is true the static mesh models are freed, too
See also:
R_SwitchModelMemPoolTag

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


Variable Documentation

model_t* r_mapTiles[MAX_MAPTILES]
model_t r_models[MAX_MOD_KNOWN]

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


Generated by  doxygen 1.6.2