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

#include <animmodel.hpp>

Inheritance diagram for animmodel::meshgroup:
skelmodel::skelmeshgroup vertmodel::vertmeshgroup smd::smdmeshgroup md2::md2meshgroup md3::md3meshgroup

Public Member Functions

 meshgroup ()
 
virtual ~meshgroup ()
 
virtual int findtag (const char *name)
 
virtual void concattagtransform (part *p, int i, const matrix4x3 &m, matrix4x3 &n)
 
void calcbb (vec &bbmin, vec &bbmax, const matrix4x3 &m)
 
void genBIH (vector< skin > &skins, vector< BIH::mesh > &bih, const matrix4x3 &t)
 
virtual voidanimkey ()
 
virtual int totalframes () const
 
bool hasframe (int i) const
 
bool hasframes (int i, int n) const
 
int clipframes (int i, int n) const
 
virtual void cleanup ()
 
virtual void preload (part *p)
 
virtual void render (const animstate *as, float pitch, const vec &axis, const vec &forward, dynent *d, part *p)
 
void bindpos (GLuint ebuf, GLuint vbuf, void *v, int stride)
 
void bindtc (void *v, int stride)
 
void bindnormals (void *v, int stride)
 
void bindtangents (void *v, int stride)
 
void bindbones (void *wv, void *bv, int stride)
 

Public Attributes

meshgroupnext
 
int shared
 
char * name
 
vector< mesh * > meshes
 

Constructor & Destructor Documentation

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

References DELETEA, DELETEP, meshes, name, and next.

Member Function Documentation

virtual void* animmodel::meshgroup::animkey ( )
inlinevirtual

Reimplemented in skelmodel::skelmeshgroup.

Referenced by animmodel::part::calcanim().

void animmodel::meshgroup::bindbones ( void wv,
void bv,
int  stride 
)
inline
void animmodel::meshgroup::bindnormals ( void v,
int  stride 
)
inline
void animmodel::meshgroup::bindpos ( GLuint  ebuf,
GLuint  vbuf,
void v,
int  stride 
)
inline
void animmodel::meshgroup::bindtangents ( void v,
int  stride 
)
inline
void animmodel::meshgroup::bindtc ( void v,
int  stride 
)
inline
void animmodel::meshgroup::calcbb ( vec bbmin,
vec bbmax,
const matrix4x3 m 
)
inline

References loopv, and meshes.

Referenced by animmodel::part::calcbb().

virtual void animmodel::meshgroup::cleanup ( )
inlinevirtual
int animmodel::meshgroup::clipframes ( int  i,
int  n 
) const
inline
virtual void animmodel::meshgroup::concattagtransform ( part p,
int  i,
const matrix4x3 m,
matrix4x3 n 
)
inlinevirtual
virtual int animmodel::meshgroup::findtag ( const char *  name)
inlinevirtual
void animmodel::meshgroup::genBIH ( vector< skin > &  skins,
vector< BIH::mesh > &  bih,
const matrix4x3 t 
)
inline

References loopv, and meshes.

Referenced by animmodel::part::genBIH().

bool animmodel::meshgroup::hasframe ( int  i) const
inline

References totalframes().

Referenced by animmodel::part::calcanim().

bool animmodel::meshgroup::hasframes ( int  i,
int  n 
) const
inline

References totalframes().

Referenced by animmodel::part::calcanim().

virtual void animmodel::meshgroup::preload ( part p)
inlinevirtual
virtual void animmodel::meshgroup::render ( const animstate as,
float  pitch,
const vec axis,
const vec forward,
dynent d,
part p 
)
inlinevirtual
virtual int animmodel::meshgroup::totalframes ( ) const
inlinevirtual

Member Data Documentation

vector<mesh *> animmodel::meshgroup::meshes
char* animmodel::meshgroup::name
meshgroup* animmodel::meshgroup::next

Referenced by ~meshgroup().

int animmodel::meshgroup::shared

Referenced by animmodel::part::loaded().


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