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
animmodel::mesh Struct Reference

#include <animmodel.hpp>

Inheritance diagram for animmodel::mesh:
vertmodel::vertmesh

Public Member Functions

 mesh ()
 
virtual ~mesh ()
 
virtual void calcbb (vec &bbmin, vec &bbmax, const matrix4x3 &m)
 
virtual void genBIH (BIH::mesh &m)
 
void genBIH (skin &s, vector< BIH::mesh > &bih, const matrix4x3 &t)
 
virtual void setshader (Shader *s)
 
template<class V , class T >
void smoothnorms (V *verts, int numverts, T *tris, int numtris, float limit, bool areaweight)
 
template<class V , class T >
void buildnorms (V *verts, int numverts, T *tris, int numtris, bool areaweight)
 
template<class V , class T >
void buildnorms (V *verts, int numverts, T *tris, int numtris, bool areaweight, int numframes)
 
template<class B , class V , class TC , class T >
void calctangents (B *bumpverts, V *verts, TC *tcverts, int numverts, T *tris, int numtris, bool areaweight)
 
template<class B , class V , class TC , class T >
void calctangents (B *bumpverts, V *verts, TC *tcverts, int numverts, T *tris, int numtris, bool areaweight, int numframes)
 

Static Public Member Functions

static void fixqtangent (quat &q, float bt)
 
template<class V >
static void calctangent (V &v, const vec &n, const vec &t, float bt)
 

Public Attributes

meshgroupgroup
 
char * name
 
bool noclip
 

Constructor & Destructor Documentation

animmodel::mesh::mesh ( )
inline
virtual animmodel::mesh::~mesh ( )
inlinevirtual

References DELETEA, and name.

Member Function Documentation

template<class V , class T >
void animmodel::mesh::buildnorms ( V *  verts,
int  numverts,
T *  tris,
int  numtris,
bool  areaweight 
)
inline
template<class V , class T >
void animmodel::mesh::buildnorms ( V *  verts,
int  numverts,
T *  tris,
int  numtris,
bool  areaweight,
int  numframes 
)
inline

References buildnorms(), and loopi().

virtual void animmodel::mesh::calcbb ( vec bbmin,
vec bbmax,
const matrix4x3 m 
)
inlinevirtual

Reimplemented in vertmodel::vertmesh.

template<class V >
static void animmodel::mesh::calctangent ( V &  v,
const vec n,
const vec t,
float  bt 
)
inlinestatic
template<class B , class V , class TC , class T >
void animmodel::mesh::calctangents ( B *  bumpverts,
V *  verts,
TC *  tcverts,
int  numverts,
T *  tris,
int  numtris,
bool  areaweight 
)
inline
template<class B , class V , class TC , class T >
void animmodel::mesh::calctangents ( B *  bumpverts,
V *  verts,
TC *  tcverts,
int  numverts,
T *  tris,
int  numtris,
bool  areaweight,
int  numframes 
)
inline

References calctangents(), and loopi().

static void animmodel::mesh::fixqtangent ( quat q,
float  bt 
)
inlinestatic

References vec4::mul3(), and vec4::neg().

Referenced by calctangent(), and calctangents().

virtual void animmodel::mesh::genBIH ( BIH::mesh m)
inlinevirtual

Reimplemented in vertmodel::vertmesh.

Referenced by genBIH().

void animmodel::mesh::genBIH ( skin s,
vector< BIH::mesh > &  bih,
const matrix4x3 t 
)
inline
virtual void animmodel::mesh::setshader ( Shader s)
inlinevirtual
template<class V , class T >
void animmodel::mesh::smoothnorms ( V *  verts,
int  numverts,
T *  tris,
int  numtris,
float  limit,
bool  areaweight 
)
inline

Member Data Documentation

meshgroup* animmodel::mesh::group
char* animmodel::mesh::name
bool animmodel::mesh::noclip

Referenced by genBIH().


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