Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
varenderer< T > Struct Template Reference
Inheritance diagram for varenderer< T >:
partrenderer

Public Member Functions

 varenderer (const char *texname, int type, int collide=0)
 
void cleanup () override
 
void init (int n) override
 
void reset () override
 
void resettracked (physent *owner) override
 
int count () override
 
bool haswork () override
 
particleaddpart (const vec &o, const vec &d, int fade, int color, float size, int gravity) override
 
void seedemitter (particleemitter &pe, const vec &o, const vec &d, int fade, float size, int gravity) override
 
void genverts (particle *p, partvert *vs, bool regen)
 
void genverts ()
 
void update () override
 
void render () override
 
virtual int adddepthfx (vec &bbmin, vec &bbmax)
 
void calc (particle *p, int &blend, int &ts, vec &o, vec &d, bool step=true)
 
const char * debuginfo ()
 

Public Attributes

partvertverts
 
particleparts
 
int maxparts
 
int numparts
 
int lastupdate
 
int rndmask
 
GLuint vbo
 
Texturetex
 
const char * texname
 
int texclamp
 
uint type
 
int collide
 
string info
 

Constructor & Destructor Documentation

template<int T>
varenderer< T >::varenderer ( const char *  texname,
int  type,
int  collide = 0 
)
inline

References PT_HFLIP, PT_RND4, PT_ROT, and PT_VFLIP.

Member Function Documentation

virtual int partrenderer::adddepthfx ( vec bbmin,
vec bbmax 
)
inlinevirtualinherited

Referenced by finddepthfxranges().

template<int T>
particle* varenderer< T >::addpart ( const vec o,
const vec d,
int  fade,
int  color,
float  size,
int  gravity 
)
inlineoverridevirtual
void partrenderer::calc ( particle p,
int &  blend,
int &  ts,
vec o,
vec d,
bool  step = true 
)
inherited
template<int T>
void varenderer< T >::cleanup ( )
inlineoverridevirtual

Reimplemented from partrenderer.

References glDeleteBuffers_, and gle::vbo.

template<int T>
int varenderer< T >::count ( )
inlineoverridevirtual

Implements partrenderer.

const char * partrenderer::debuginfo ( )
inherited
template<int T>
void varenderer< T >::genverts ( particle p,
partvert vs,
bool  regen 
)
inline
template<int T>
void varenderer< T >::genverts ( )
inline
template<int T>
bool varenderer< T >::haswork ( )
inlineoverridevirtual

Implements partrenderer.

template<int T>
void varenderer< T >::init ( int  n)
inlineoverridevirtual

Reimplemented from partrenderer.

References DELETEA, parts, and sphere::verts.

template<int T>
void varenderer< T >::render ( )
inlineoverridevirtual
template<int T>
void varenderer< T >::reset ( )
inlineoverridevirtual

Implements partrenderer.

template<int T>
void varenderer< T >::resettracked ( physent owner)
inlineoverridevirtual

Reimplemented from partrenderer.

References particle::fade, loopi(), parts, and PT_TRACK.

template<int T>
void varenderer< T >::seedemitter ( particleemitter pe,
const vec o,
const vec d,
int  fade,
float  size,
int  gravity 
)
inlineoverridevirtual
template<int T>
void varenderer< T >::update ( )
inlineoverridevirtual

Member Data Documentation

int partrenderer::collide
inherited
string partrenderer::info
inherited
template<int T>
int varenderer< T >::lastupdate
template<int T>
int varenderer< T >::maxparts
template<int T>
int varenderer< T >::numparts
template<int T>
particle* varenderer< T >::parts
template<int T>
int varenderer< T >::rndmask
Texture* partrenderer::tex
inherited
int partrenderer::texclamp
inherited
const char* partrenderer::texname
inherited

Referenced by flarerenderer::render().

uint partrenderer::type
inherited
template<int T>
GLuint varenderer< T >::vbo
template<int T>
partvert* varenderer< T >::verts

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