r_model_md2.c File Reference

md2 alias model loading More...

#include "r_local.h"
Include dependency graph for r_model_md2.c:

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, qboolean loadNormals)
 Assume that the indexArray is *NOT* filled, and load data for the model accordingly.
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.
static void R_ModLoadAliasMD2Mesh (model_t *mod, const dMD2Model_t *md2, int bufSize, qboolean loadNormals)
 See if the model has an MDX file, and then load the model data appropriately for either case.
static void R_ModLoadLevelOfDetailData (model_t *mod, qboolean loadNormals)
 Adds new meshes to md2 models for different level of detail meshes.
void R_ModLoadAliasMD2Model (model_t *mod, byte *buffer, int bufSize, qboolean loadNormals)
 Load MD2 models from file.

Detailed Description

md2 alias model loading

Definition in file r_model_md2.c.


Function Documentation

static void R_ModLoadAliasMD2Mesh ( model_t mod,
const dMD2Model_t md2,
int  bufSize,
qboolean  loadNormals 
) [static]
static void R_ModLoadAliasMD2MeshIndexed ( model_t mod,
const dMD2Model_t md2,
int  bufSize 
) [static]
static void R_ModLoadAliasMD2MeshUnindexed ( model_t mod,
const dMD2Model_t md2,
int  bufSize,
qboolean  loadNormals 
) [static]
void R_ModLoadAliasMD2Model ( model_t mod,
byte buffer,
int  bufSize,
qboolean  loadNormals 
)
static void R_ModLoadLevelOfDetailData ( model_t mod,
qboolean  loadNormals 
) [static]

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

Parameters:
mod The model to load the lod models for
Note:
We support three different levels here

Definition at line 451 of file r_model_md2.c.

References byte, 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().

static void R_ModLoadTags ( model_t mod,
void *  buffer,
int  bufSize 
) [static]

Generated by  doxygen 1.6.2