dpm alias model loading More...
#include "r_local.h"
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. |
dpm alias model loading
Definition in file r_model_dpm.c.
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.
Definition at line 31 of file r_model_dpm.c.
References model_s::alias, mAliasFrame_s::boneMatrix, mAliasMesh_s::bonesVertexes, mAliasModel_s::frames, i, mAliasBoneVertex_s::influence, mAliasBoneMatrix_s::matrix, Mem_Free, Mem_PoolAlloc, mAliasModel_s::meshes, mAliasMesh_s::num_verts, mAliasBoneVertex_s::origin, mAliasMesh_s::vertexes, and vid_modelPool.
Referenced by R_ModLoadAliasDPMModel().
Load dpm models from file.
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().