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
fireballrenderer Struct Reference

#include <explosion.hpp>

Inheritance diagram for fireballrenderer:
listrenderer partrenderer

Public Member Functions

 fireballrenderer (const char *texname)
 
void startrender () override
 
void endrender () override
 
void cleanup () override
 
int finddepthfxranges (void **owners, float *ranges, int numranges, int maxranges, vec &bbmin, vec &bbmax)
 
void seedemitter (particleemitter &pe, const vec &o, const vec &d, int fade, float size, int gravity) override
 
void renderpart (listparticle *p, const vec &o, const vec &d, int blend, int ts) override
 
virtual void killpart (listparticle *p)
 
void reset () override
 
void resettracked (physent *owner) override
 
particleaddpart (const vec &o, const vec &d, int fade, int color, float size, int gravity) override
 
int count () override
 
bool haswork () override
 
void render () override
 
virtual void init (int n)
 
virtual int adddepthfx (vec &bbmin, vec &bbmax)
 
virtual void update ()
 
void calc (particle *p, int &blend, int &ts, vec &o, vec &d, bool step=true)
 
const char * debuginfo ()
 

Public Attributes

listparticlelist
 
Texturetex
 
const char * texname
 
int texclamp
 
uint type
 
int collide
 
string info
 

Static Public Attributes

static listparticleparempty = nullptr
 

Constructor & Destructor Documentation

fireballrenderer::fireballrenderer ( const char *  texname)
inline

Member Function Documentation

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

Referenced by finddepthfxranges().

particle * listrenderer::addpart ( const vec o,
const vec d,
int  fade,
int  color,
float  size,
int  gravity 
)
overridevirtualinherited
void partrenderer::calc ( particle p,
int &  blend,
int &  ts,
vec o,
vec d,
bool  step = true 
)
inherited
void fireballrenderer::cleanup ( )
overridevirtual

Reimplemented from partrenderer.

References sphere::cleanup().

int listrenderer::count ( )
overridevirtualinherited

Implements partrenderer.

References listparticle::next.

const char * partrenderer::debuginfo ( )
inherited
void fireballrenderer::endrender ( )
overridevirtual

Implements listrenderer.

References sphere::disable().

int fireballrenderer::finddepthfxranges ( void **  owners,
float *  ranges,
int  numranges,
int  maxranges,
vec bbmin,
vec bbmax 
)
bool listrenderer::haswork ( )
overridevirtualinherited

Implements partrenderer.

virtual void partrenderer::init ( int  n)
inlinevirtualinherited

Reimplemented in varenderer< T >.

Referenced by particleinit().

virtual void listrenderer::killpart ( listparticle p)
inlinevirtualinherited

Reimplemented in textrenderer.

void listrenderer::render ( )
overridevirtualinherited

Implements partrenderer.

References canstep, hmap::d, and textureload().

void fireballrenderer::renderpart ( listparticle p,
const vec o,
const vec d,
int  blend,
int  ts 
)
overridevirtual
void listrenderer::reset ( )
overridevirtualinherited

Implements partrenderer.

References listparticle::next.

void listrenderer::resettracked ( physent owner)
overridevirtualinherited

Reimplemented from partrenderer.

References cur, and PT_TRACK.

void fireballrenderer::seedemitter ( particleemitter pe,
const vec o,
const vec d,
int  fade,
float  size,
int  gravity 
)
overridevirtual
void fireballrenderer::startrender ( )
overridevirtual
virtual void partrenderer::update ( )
inlinevirtualinherited

Reimplemented in varenderer< T >, and lightningrenderer.

Referenced by renderparticles().

Member Data Documentation

int partrenderer::collide
inherited
string partrenderer::info
inherited
listparticle* listrenderer::list
inherited

Referenced by finddepthfxranges().

listparticle * listrenderer::parempty = nullptr
staticinherited
Texture* partrenderer::tex
inherited
int partrenderer::texclamp
inherited
const char* partrenderer::texname
inherited

Referenced by flarerenderer::render().

uint partrenderer::type
inherited

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