r_model_dpm.c File Reference

dpm alias model loading More...

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

Go to the source code of this file.

Functions

void R_ModelLoadDPMVertsForFrame (model_t *mod, int frame)
 Transforms the bones vertices of the given frame to the initial mesh structure of the given model.
void R_ModLoadAliasDPMModel (model_t *mod, byte *buffer, int bufSize)
 Load dpm models from file.

Detailed Description

dpm alias model loading

Definition in file r_model_dpm.c.


Function Documentation

void R_ModelLoadDPMVertsForFrame ( model_t mod,
int  frame 
)
void R_ModLoadAliasDPMModel ( model_t mod,
byte buffer,
int  bufSize 
)

Load dpm models from file.

Todo:
Load this into mAliasModel_t structure

Definition at line 72 of file r_model_dpm.c.

References model_s::alias, dpmframe_s::allradius, dpmheader_s::allradius, BigFloat(), BigLong(), mAliasFrame_s::boneMatrix, mAliasBoneVertex_s::bonenum, dpmbonevert_s::bonenum, mAliasModel_s::bones, mAliasMesh_s::bonesVertexes, byte, Com_Error(), ERR_DROP, dpmbone_s::flags, mAliasBone_s::flags, mAliasModel_s::frames, i, mAliasMesh_s::indexes, mAliasBoneVertex_s::influence, dpmbonevert_s::influence, mAliasCoord_t, dpmbonepose_s::matrix, mAliasBoneMatrix_s::matrix, dpmframe_s::maxs, mAliasFrame_s::maxs, dpmheader_s::maxs, model_s::maxs, Mem_PoolAlloc, mAliasModel_s::meshes, dpmframe_s::mins, mAliasFrame_s::mins, dpmheader_s::mins, model_s::mins, mod_alias_dpm, image_s::name, mAliasSkin_s::name, model_s::name, mAliasBoneVertex_s::normal, dpmbonevert_s::normal, dpmheader_s::num_bones, mAliasModel_s::num_bones, dpmheader_s::num_frames, mAliasModel_s::num_frames, mAliasModel_s::num_meshes, dpmheader_s::num_meshs, dpmmesh_s::num_tris, mAliasMesh_s::num_tris, dpmmesh_s::num_verts, mAliasMesh_s::num_verts, dpmvertex_s::numbones, dpmframe_s::ofs_bonepositions, dpmheader_s::ofs_bones, dpmheader_s::ofs_frames, dpmmesh_s::ofs_groupids, dpmmesh_s::ofs_indices, dpmheader_s::ofs_meshs, dpmmesh_s::ofs_texcoords, dpmmesh_s::ofs_verts, mAliasBoneVertex_s::origin, dpmbonevert_s::origin, dpmbone_s::parent, mAliasBone_s::parent, Q_strncpyz(), qtrue, R_AliasModelGetSkin(), R_ModelLoadDPMVertsForFrame(), R_ModLoadArrayData(), mAliasFrame_s::radius, model_s::radius, dpmmesh_s::shadername, mAliasSkin_s::skin, mAliasMesh_s::skins, mAliasMesh_s::stcoords, dpmheader_s::type, model_s::type, VectorCopy, and vid_modelPool.

Referenced by LoadModel(), and R_ModForName().


Generated by  doxygen 1.6.2