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
listrenderer Struct Referenceabstract

#include <particles.hpp>

Inheritance diagram for listrenderer:
partrenderer fireballrenderer lightningrenderer meterrenderer textrenderer

Public Member Functions

 listrenderer (const char *texname, int texclamp, int type, int collide=0)
 
 listrenderer (int type, int collide=0)
 
 ~listrenderer () 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
 
virtual void startrender ()=0
 
virtual void endrender ()=0
 
virtual void renderpart (listparticle *p, const vec &o, const vec &d, int blend, int ts)=0
 
void render () override
 
virtual void init (int n)
 
virtual int adddepthfx (vec &bbmin, vec &bbmax)
 
virtual void update ()
 
virtual void cleanup ()
 
virtual void seedemitter (particleemitter &pe, const vec &o, const vec &d, int fade, float size, int gravity)
 
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

listrenderer::listrenderer ( const char *  texname,
int  texclamp,
int  type,
int  collide = 0 
)
inline
listrenderer::listrenderer ( int  type,
int  collide = 0 
)
inline
listrenderer::~listrenderer ( )
inlineoverride

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 
)
overridevirtual
void partrenderer::calc ( particle p,
int &  blend,
int &  ts,
vec o,
vec d,
bool  step = true 
)
inherited
virtual void partrenderer::cleanup ( )
inlinevirtualinherited

Reimplemented in varenderer< T >, and fireballrenderer.

Referenced by cleanupparticles().

int listrenderer::count ( )
overridevirtual

Implements partrenderer.

References listparticle::next.

const char * partrenderer::debuginfo ( )
inherited
virtual void listrenderer::endrender ( )
pure virtual
bool listrenderer::haswork ( )
overridevirtual

Implements partrenderer.

virtual void partrenderer::init ( int  n)
inlinevirtualinherited

Reimplemented in varenderer< T >.

Referenced by particleinit().

virtual void listrenderer::killpart ( listparticle p)
inlinevirtual

Reimplemented in textrenderer.

void listrenderer::render ( )
overridevirtual

Implements partrenderer.

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

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

Implements partrenderer.

References listparticle::next.

void listrenderer::resettracked ( physent owner)
overridevirtual

Reimplemented from partrenderer.

References cur, and PT_TRACK.

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

Reimplemented in varenderer< T >, lightningrenderer, and fireballrenderer.

Referenced by newparticle().

virtual void listrenderer::startrender ( )
pure virtual
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
listparticle * listrenderer::parempty = nullptr
static
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: