altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
MD5 Class Reference

#include <md5.h>

Collaboration diagram for MD5:
Collaboration graph
[legend]

Public Member Functions

 MD5 ()
 
 ~MD5 ()
 
int load_md5 (char *file)
 
int load_md5_animation (char *file, anim_list_t *plist)
 
void PrepareMesh (int mesh_index, md5_joint_t *skeleton, int &num_index, int *index_array, vertex_t *vertex_array, int &num_vertex)
 
void generate_animation (md5_joint_t **&frame, md5_anim_t *anim)
 
void destroy_animation (md5_joint_t **&frame, md5_anim_t *anim)
 
void generate_tangent (int *index_array, int num_index, vertex_t *vertex_array, int num_vertex)
 

Public Attributes

vertex_t vertex_array [32][8196]
 
int index_array [32][8196]
 
int num_index [32]
 
int num_vertex [32]
 
md5_model_tmodel
 

Private Member Functions

void InterpolateSkeletons (const md5_joint_t *skelA, const md5_joint_t *skelB, int num_joints, float interp, md5_joint_t *out)
 
void calc_tangent (vertex_t &a, vertex_t &b, vertex_t &c)
 
void build_frame (md5_joint_t *joint, float *frame, md5_anim_t *anim)
 
int parse_joint (char *data, md5_joint_t *joint, int num_joint)
 
int parse_mesh (char *data, md5_mesh_t *mesh)
 
int parse_hierarchy (char *data, int num_joint, md5_hierarchy_t *hierarchy)
 
int parse_bounds (char *data, int num_bound, md5_aabb_t *aabb)
 
int parse_base (char *data, int num_base, md5_base_t *base)
 
int parse_frame (char *data, int num_frame, int num_ani, float *frame)
 

Private Attributes

bool loaded
 
stack< anim_list_t * > plist_stack
 

Constructor & Destructor Documentation

MD5::MD5 ( )
MD5::~MD5 ( )

Member Function Documentation

void MD5::build_frame ( md5_joint_t joint,
float *  frame,
md5_anim_t anim 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MD5::calc_tangent ( vertex_t a,
vertex_t b,
vertex_t c 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MD5::destroy_animation ( md5_joint_t **&  frame,
md5_anim_t anim 
)

Here is the caller graph for this function:

void MD5::generate_animation ( md5_joint_t **&  frame,
md5_anim_t anim 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MD5::generate_tangent ( int *  index_array,
int  num_index,
vertex_t vertex_array,
int  num_vertex 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MD5::InterpolateSkeletons ( const md5_joint_t skelA,
const md5_joint_t skelB,
int  num_joints,
float  interp,
md5_joint_t out 
)
private

Here is the call graph for this function:

int MD5::load_md5 ( char *  file)

Here is the call graph for this function:

Here is the caller graph for this function:

int MD5::load_md5_animation ( char *  file,
anim_list_t plist 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int MD5::parse_base ( char *  data,
int  num_base,
md5_base_t base 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

int MD5::parse_bounds ( char *  data,
int  num_bound,
md5_aabb_t aabb 
)
private

Here is the caller graph for this function:

int MD5::parse_frame ( char *  data,
int  num_frame,
int  num_ani,
float *  frame 
)
private

Here is the caller graph for this function:

int MD5::parse_hierarchy ( char *  data,
int  num_joint,
md5_hierarchy_t hierarchy 
)
private

Here is the caller graph for this function:

int MD5::parse_joint ( char *  data,
md5_joint_t joint,
int  num_joint 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

int MD5::parse_mesh ( char *  data,
md5_mesh_t mesh 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MD5::PrepareMesh ( int  mesh_index,
md5_joint_t skeleton,
int &  num_index,
int *  index_array,
vertex_t vertex_array,
int &  num_vertex 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int MD5::index_array[32][8196]
bool MD5::loaded
private
md5_model_t* MD5::model
int MD5::num_index[32]
int MD5::num_vertex[32]
stack<anim_list_t *> MD5::plist_stack
private
vertex_t MD5::vertex_array[32][8196]

The documentation for this class was generated from the following files: