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

#include <lightning.hpp>

Inheritance diagram for lightningrenderer:
listrenderer partrenderer

Public Member Functions

 lightningrenderer ()
 
void startrender () override
 
void endrender () override
 
void update () override
 
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 cleanup ()
 
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

lightningrenderer::lightningrenderer ( )
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
virtual void partrenderer::cleanup ( )
inlinevirtualinherited

Reimplemented in varenderer< T >, and fireballrenderer.

Referenced by cleanupparticles().

int listrenderer::count ( )
overridevirtualinherited

Implements partrenderer.

References listparticle::next.

const char * partrenderer::debuginfo ( )
inherited
void lightningrenderer::endrender ( )
inlineoverridevirtual

Implements listrenderer.

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 lightningrenderer::renderpart ( listparticle p,
const vec o,
const vec d,
int  blend,
int  ts 
)
inlineoverridevirtual
void listrenderer::reset ( )
overridevirtualinherited

Implements partrenderer.

References listparticle::next.

void listrenderer::resettracked ( physent owner)
overridevirtualinherited

Reimplemented from partrenderer.

References cur, and PT_TRACK.

void lightningrenderer::seedemitter ( particleemitter pe,
const vec o,
const vec d,
int  fade,
float  size,
int  gravity 
)
inlineoverridevirtual
void lightningrenderer::startrender ( )
inlineoverridevirtual
void lightningrenderer::update ( )
inlineoverridevirtual

Reimplemented from partrenderer.

References setuplightning().

Member Data Documentation

int partrenderer::collide
inherited
string partrenderer::info
inherited
listparticle* listrenderer::list
inherited
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 file: