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

#include <vertmodel.hpp>

Inheritance diagram for vertmodel::vertmeshgroup:
animmodel::meshgroup md2::md2meshgroup md3::md3meshgroup

Public Member Functions

 vertmeshgroup ()
 
 ~vertmeshgroup () override
 
int findtag (const char *name) override
 
int totalframes () const override
 
void concattagtransform (part *p, int i, const matrix4x3 &m, matrix4x3 &n) override
 
void calctagmatrix (part *p, int i, const animstate &as, matrix4 &matrix)
 
void genvbo (bool tangents, vbocacheentry &vc)
 
void bindvbo (const animstate *as, vbocacheentry &vc)
 
void cleanup () override
 
void preload (part *p) override
 
void render (const animstate *as, float pitch, const vec &axis, const vec &forward, dynent *d, part *p) override
 
void calcbb (vec &bbmin, vec &bbmax, const matrix4x3 &m)
 
void genBIH (vector< skin > &skins, vector< BIH::mesh > &bih, const matrix4x3 &t)
 
virtual voidanimkey ()
 
bool hasframe (int i) const
 
bool hasframes (int i, int n) const
 
int clipframes (int i, int n) const
 
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

int numframes
 
tagtags
 
int numtags
 
vbocacheentry vbocache [MAXVBOCACHE]
 
ushortedata
 
GLuint ebuf
 
bool vtangents
 
int vlen
 
int vertsize
 
ucharvdata
 
meshgroupnext
 
int shared
 
char * name
 
vector< mesh * > meshes
 

Static Public Attributes

static const int MAXVBOCACHE = 16
 

Constructor & Destructor Documentation

vertmodel::vertmeshgroup::vertmeshgroup ( )
inline
vertmodel::vertmeshgroup::~vertmeshgroup ( )
inlineoverride

Member Function Documentation

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

Reimplemented in skelmodel::skelmeshgroup.

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

void animmodel::meshgroup::bindbones ( void wv,
void bv,
int  stride 
)
inlineinherited
void animmodel::meshgroup::bindnormals ( void v,
int  stride 
)
inlineinherited
void animmodel::meshgroup::bindpos ( GLuint  ebuf,
GLuint  vbuf,
void v,
int  stride 
)
inlineinherited
void animmodel::meshgroup::bindtangents ( void v,
int  stride 
)
inlineinherited
void animmodel::meshgroup::bindtc ( void v,
int  stride 
)
inlineinherited
void vertmodel::vertmeshgroup::bindvbo ( const animstate as,
vbocacheentry vc 
)
inline
void animmodel::meshgroup::calcbb ( vec bbmin,
vec bbmax,
const matrix4x3 m 
)
inlineinherited
void vertmodel::vertmeshgroup::calctagmatrix ( part p,
int  i,
const animstate as,
matrix4 matrix 
)
inline
void vertmodel::vertmeshgroup::cleanup ( )
inlineoverridevirtual
int animmodel::meshgroup::clipframes ( int  i,
int  n 
) const
inlineinherited
void vertmodel::vertmeshgroup::concattagtransform ( part p,
int  i,
const matrix4x3 m,
matrix4x3 n 
)
inlineoverridevirtual
int vertmodel::vertmeshgroup::findtag ( const char *  name)
inlineoverridevirtual

Reimplemented from animmodel::meshgroup.

References loopi().

void animmodel::meshgroup::genBIH ( vector< skin > &  skins,
vector< BIH::mesh > &  bih,
const matrix4x3 t 
)
inlineinherited
void vertmodel::vertmeshgroup::genvbo ( bool  tangents,
vbocacheentry vc 
)
inline
bool animmodel::meshgroup::hasframe ( int  i) const
inlineinherited
bool animmodel::meshgroup::hasframes ( int  i,
int  n 
) const
inlineinherited
void vertmodel::vertmeshgroup::preload ( part p)
inlineoverridevirtual
void vertmodel::vertmeshgroup::render ( const animstate as,
float  pitch,
const vec axis,
const vec forward,
dynent d,
part p 
)
inlineoverridevirtual
int vertmodel::vertmeshgroup::totalframes ( ) const
inlineoverridevirtual

Reimplemented from animmodel::meshgroup.

Member Data Documentation

GLuint vertmodel::vertmeshgroup::ebuf
ushort* vertmodel::vertmeshgroup::edata
const int vertmodel::vertmeshgroup::MAXVBOCACHE = 16
static
vector<mesh *> animmodel::meshgroup::meshes
inherited
char* animmodel::meshgroup::name
inherited
meshgroup* animmodel::meshgroup::next
inherited
int vertmodel::vertmeshgroup::numframes
int vertmodel::vertmeshgroup::numtags

Referenced by md3::md3meshgroup::load().

int animmodel::meshgroup::shared
inherited

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

tag* vertmodel::vertmeshgroup::tags

Referenced by md3::md3meshgroup::load().

vbocacheentry vertmodel::vertmeshgroup::vbocache[MAXVBOCACHE]
uchar* vertmodel::vertmeshgroup::vdata
int vertmodel::vertmeshgroup::vertsize
int vertmodel::vertmeshgroup::vlen
bool vertmodel::vertmeshgroup::vtangents

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