UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
r_model_md2.cpp File Reference

md2 alias model loading More...

#include "r_local.h"

Go to the source code of this file.

Functions

static void R_ModLoadTags (model_t *mod, void *buffer, int bufSize)
 
static void R_ModLoadAliasMD2MeshUnindexed (model_t *mod, const dMD2Model_t *md2, int bufSize, bool loadNormals)
 Assume that the indexArray is NOT filled, and load data for the model accordingly. More...
 
static void R_ModLoadAliasMD2MeshIndexed (model_t *mod, const dMD2Model_t *md2, int bufSize)
 Assume that the indexArray is already filled, and load data for the model accordingly. More...
 
static void R_ModLoadAliasMD2Mesh (model_t *mod, const dMD2Model_t *md2, int bufSize, bool loadNormals)
 See if the model has an MDX file, and then load the model data appropriately for either case. More...
 
static void R_ModLoadLevelOfDetailData (model_t *mod, bool loadNormals)
 Adds new meshes to md2 models for different level of detail meshes. More...
 
void R_ModLoadAliasMD2Model (model_t *mod, byte *buffer, int bufSize, bool loadNormals)
 Load MD2 models from file. More...
 

Detailed Description

md2 alias model loading

Definition in file r_model_md2.cpp.

Function Documentation

static void R_ModLoadAliasMD2Mesh ( model_t mod,
const dMD2Model_t md2,
int  bufSize,
bool  loadNormals 
)
static
static void R_ModLoadAliasMD2MeshUnindexed ( model_t mod,
const dMD2Model_t md2,
int  bufSize,
bool  loadNormals 
)
static
static void R_ModLoadLevelOfDetailData ( model_t mod,
bool  loadNormals 
)
static

Adds new meshes to md2 models for different level of detail meshes.

Parameters
modThe model to load the lod models for
loadNormalsIf true, load vertex normals
Note
We support three different levels here

Definition at line 450 of file r_model_md2.cpp.

References bufSize, Com_Printf(), Com_sprintf(), Com_StripExtension(), FS_CheckFile(), FS_FreeFile(), FS_LoadFile(), i, MAX_QPATH, model_s::name, and R_ModLoadAliasMD2Mesh().

Referenced by R_ModLoadAliasMD2Model().