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

#include <skelmodel.hpp>

Inheritance diagram for skelmodel::skelpart:
animmodel::part

Public Member Functions

 skelpart (animmodel *model, int index=0)
 
 ~skelpart () override
 
ucharsharepartmask (animpartmask *o)
 
animpartmasknewpartmask ()
 
void initanimparts ()
 
bool addanimpart (ushort *bonemask)
 
void endanimparts ()
 
void loaded () override
 
virtual void cleanup ()
 
void calcbb (vec &bbmin, vec &bbmax, const matrix4x3 &m)
 
void genBIH (vector< BIH::mesh > &bih, const matrix4x3 &m)
 
bool link (part *p, const char *tag, const vec &translate=vec(0, 0, 0), int anim=-1, int basetime=0, vec *pos=nullptr)
 
bool unlink (part *p)
 
void initskins (Texture *tex=notexture, Texture *masks=notexture, int limit=0)
 
bool envmapped ()
 
bool tangents ()
 
void preloadBIH ()
 
void preloadshaders (bool force)
 
void preloadmeshes ()
 
virtual void getdefaultanim (animinfo &info, int anim, uint varseed, dynent *d)
 
bool calcanim (int animpart, int anim, int basetime, int basetime2, dynent *d, int interp, animinfo &info, int &aitime)
 
void render (int anim, int basetime, int basetime2, float pitch, const vec &axis, const vec &forward, dynent *d)
 
void render (int anim, int basetime, int basetime2, float pitch, const vec &axis, const vec &forward, dynent *d, animstate *as)
 
void setanim (int animpart, int num, int frame, int range, float speed, int priority=0)
 

Public Attributes

animpartmaskbuildingpartmask
 
ucharpartmask
 
animmodelmodel
 
int index
 
meshgroupmeshes
 
vector< linkedpartlinks
 
vector< skinskins
 
vector< animspec > * anims [MAXANIMPARTS]
 
int numanimparts
 
float pitchscale
 
float pitchoffset
 
float pitchmin
 
float pitchmax
 
vec translate
 

Constructor & Destructor Documentation

skelmodel::skelpart::skelpart ( animmodel model,
int  index = 0 
)
inline
skelmodel::skelpart::~skelpart ( )
inlineoverride

References buildingpartmask, and DELETEA.

Member Function Documentation

bool skelmodel::skelpart::addanimpart ( ushort bonemask)
inline
bool animmodel::part::calcanim ( int  animpart,
int  anim,
int  basetime,
int  basetime2,
dynent d,
int  interp,
animinfo info,
int &  aitime 
)
inlineinherited
void animmodel::part::calcbb ( vec bbmin,
vec bbmax,
const matrix4x3 m 
)
inlineinherited
virtual void animmodel::part::cleanup ( )
inlinevirtualinherited
void skelmodel::skelpart::endanimparts ( )
inline
bool animmodel::part::envmapped ( )
inlineinherited

References loopv, and animmodel::part::skins.

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

void animmodel::part::genBIH ( vector< BIH::mesh > &  bih,
const matrix4x3 m 
)
inlineinherited
virtual void animmodel::part::getdefaultanim ( animinfo info,
int  anim,
uint  varseed,
dynent d 
)
inlinevirtualinherited

Reimplemented in md2::md2part.

References animinfo::frame, and animinfo::range.

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

void skelmodel::skelpart::initanimparts ( )
inline
void animmodel::part::initskins ( Texture tex = notexture,
Texture masks = notexture,
int  limit = 0 
)
inlineinherited
bool animmodel::part::link ( part p,
const char *  tag,
const vec translate = vec(0, 0, 0),
int  anim = -1,
int  basetime = 0,
vec pos = nullptr 
)
inlineinherited
void skelmodel::skelpart::loaded ( )
inlineoverridevirtual

Reimplemented from animmodel::part.

References endanimparts(), and animmodel::part::loaded().

animpartmask* skelmodel::skelpart::newpartmask ( )
inline
void animmodel::part::preloadBIH ( )
inlineinherited

References loopv, and animmodel::part::skins.

void animmodel::part::preloadmeshes ( )
inlineinherited
void animmodel::part::preloadshaders ( bool  force)
inlineinherited

References loopv, and animmodel::part::skins.

void animmodel::part::render ( int  anim,
int  basetime,
int  basetime2,
float  pitch,
const vec axis,
const vec forward,
dynent d 
)
inlineinherited
void animmodel::part::render ( int  anim,
int  basetime,
int  basetime2,
float  pitch,
const vec axis,
const vec forward,
dynent d,
animstate as 
)
inlineinherited
void animmodel::part::setanim ( int  animpart,
int  num,
int  frame,
int  range,
float  speed,
int  priority = 0 
)
inlineinherited
uchar* skelmodel::skelpart::sharepartmask ( animpartmask o)
inline
bool animmodel::part::tangents ( )
inlineinherited
bool animmodel::part::unlink ( part p)
inlineinherited

Member Data Documentation

vector<animspec>* animmodel::part::anims[MAXANIMPARTS]
inherited
animpartmask* skelmodel::skelpart::buildingpartmask
int animmodel::part::index
inherited

Referenced by animmodel::render().

vector<linkedpart> animmodel::part::links
inherited
meshgroup* animmodel::part::meshes
inherited
animmodel* animmodel::part::model
inherited
int animmodel::part::numanimparts
inherited
uchar* skelmodel::skelpart::partmask

Referenced by endanimparts().

float animmodel::part::pitchmax
inherited
float animmodel::part::pitchmin
inherited
float animmodel::part::pitchoffset
inherited
float animmodel::part::pitchscale
inherited
vector<skin> animmodel::part::skins
inherited
vec animmodel::part::translate
inherited

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