Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
md5::md5mesh Struct Reference

#include <md5.hpp>

Inheritance diagram for md5::md5mesh:
skelmodel::skelmesh

Public Member Functions

 md5mesh ()
 
 ~md5mesh () override
 
void cleanup ()
 
void buildverts (vector< md5joint > &joints)
 
void load (stream *f, char *buf, size_t bufsize)
 
int addblendcombo (const blendcombo &c)
 
void smoothnorms (float limit=0, bool areaweight=true)
 
void buildnorms (bool areaweight=true)
 
void calctangents (bool areaweight=true)
 
void calcbb (vec &bbmin, vec &bbmax, const matrix4x3 &m) override
 
void genBIH (BIH::mesh &m) override
 
void assignvert (vvertbump &vv, int j, vert &v, blendcombo &c)
 
void assignvert (vvertbumpw &vv, int j, vert &v, blendcombo &c)
 
template<class T >
int genvbo (vector< ushort > &idxs, int offset, vector< T > &vverts)
 
template<class T >
int genvbo (vector< ushort > &idxs, int offset, vector< T > &vverts, int *htdata, int htlen)
 
int genvbo (vector< ushort > &idxs, int offset)
 
template<class T >
void fillverts (T *vdata)
 
void interpverts (const dualquat *RESTRICT bdata1, const dualquat *RESTRICT bdata2, bool tangents, void *RESTRICT vdata, skin &s)
 
void setshader (Shader *s) override
 
void render (const animstate *as, skin &s, vbocacheentry &vc)
 

Static Public Member Functions

static void assignvert (vvertn &vv, int j, vert &v, blendcombo &c)
 
static void assignvert (vvertnw &vv, int j, vert &v, blendcombo &c)
 
template<class T >
static void fillvert (T &vv, int j, vert &v)
 

Public Attributes

md5weightweightinfo
 
int numweights
 
md5vertvertinfo
 
vertverts
 
bumpvertbumpverts
 
tritris
 
int numverts
 
int numtris
 
int maxweights
 
int voffset
 
int eoffset
 
int elen
 
ushort minvert
 
ushort maxvert
 

Constructor & Destructor Documentation

md5::md5mesh::md5mesh ( )
inline
md5::md5mesh::~md5mesh ( )
inlineoverride

References cleanup().

Member Function Documentation

int skelmodel::skelmesh::addblendcombo ( const blendcombo c)
inlineinherited
static void skelmodel::skelmesh::assignvert ( vvertn vv,
int  j,
vert v,
blendcombo c 
)
inlinestaticinherited
void skelmodel::skelmesh::assignvert ( vvertbump vv,
int  j,
vert v,
blendcombo c 
)
inlineinherited
static void skelmodel::skelmesh::assignvert ( vvertnw vv,
int  j,
vert v,
blendcombo c 
)
inlinestaticinherited
void skelmodel::skelmesh::assignvert ( vvertbumpw vv,
int  j,
vert v,
blendcombo c 
)
inlineinherited
void skelmodel::skelmesh::buildnorms ( bool  areaweight = true)
inlineinherited
void md5::md5mesh::buildverts ( vector< md5joint > &  joints)
inline
void skelmodel::skelmesh::calcbb ( vec bbmin,
vec bbmax,
const matrix4x3 m 
)
inlineoverrideinherited
void skelmodel::skelmesh::calctangents ( bool  areaweight = true)
inlineinherited
void md5::md5mesh::cleanup ( )
inline

References DELETEA, and weightinfo.

Referenced by md5::md5meshgroup::loadmesh(), and ~md5mesh().

template<class T >
static void skelmodel::skelmesh::fillvert ( T &  vv,
int  j,
vert v 
)
inlinestaticinherited
template<class T >
void skelmodel::skelmesh::fillverts ( T *  vdata)
inlineinherited
void skelmodel::skelmesh::genBIH ( BIH::mesh m)
inlineoverrideinherited
template<class T >
int skelmodel::skelmesh::genvbo ( vector< ushort > &  idxs,
int  offset,
vector< T > &  vverts 
)
inlineinherited
template<class T >
int skelmodel::skelmesh::genvbo ( vector< ushort > &  idxs,
int  offset,
vector< T > &  vverts,
int *  htdata,
int  htlen 
)
inlineinherited
int skelmodel::skelmesh::genvbo ( vector< ushort > &  idxs,
int  offset 
)
inlineinherited
void skelmodel::skelmesh::interpverts ( const dualquat *RESTRICT  bdata1,
const dualquat *RESTRICT  bdata2,
bool  tangents,
void *RESTRICT  vdata,
skin s 
)
inlineinherited
void md5::md5mesh::load ( stream f,
char *  buf,
size_t  bufsize 
)
inline
void skelmodel::skelmesh::render ( const animstate as,
skin s,
vbocacheentry vc 
)
inlineinherited
void skelmodel::skelmesh::setshader ( Shader s)
inlineoverrideinherited
void skelmodel::skelmesh::smoothnorms ( float  limit = 0,
bool  areaweight = true 
)
inlineinherited

Member Data Documentation

bumpvert* skelmodel::skelmesh::bumpverts
inherited
int skelmodel::skelmesh::elen
inherited
int skelmodel::skelmesh::eoffset
inherited
ushort skelmodel::skelmesh::maxvert
inherited
int skelmodel::skelmesh::maxweights
inherited
ushort skelmodel::skelmesh::minvert
inherited
int skelmodel::skelmesh::numtris
inherited
int skelmodel::skelmesh::numverts
inherited
int md5::md5mesh::numweights

Referenced by load().

tri* skelmodel::skelmesh::tris
inherited
md5vert* md5::md5mesh::vertinfo
vert* skelmodel::skelmesh::verts
inherited
int skelmodel::skelmesh::voffset
inherited
md5weight* md5::md5mesh::weightinfo

Referenced by buildverts(), cleanup(), and load().


The documentation for this struct was generated from the following file: