Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
partrenderer Struct Referenceabstract

#include <particles.hpp>

Inheritance diagram for partrenderer:
flarerenderer listrenderer varenderer< T > fireballrenderer lightningrenderer meterrenderer textrenderer

Public Member Functions

 partrenderer (const char *texname, int texclamp, int type, int collide=0)
 
 partrenderer (int type, int collide=0)
 
virtual ~partrenderer ()
 
virtual void init (int n)
 
virtual void reset ()=0
 
virtual void resettracked (physent *owner)
 
virtual particleaddpart (const vec &o, const vec &d, int fade, int color, float size, int gravity=0)=0
 
virtual int adddepthfx (vec &bbmin, vec &bbmax)
 
virtual void update ()
 
virtual void render ()=0
 
virtual bool haswork ()=0
 
virtual int count ()=0
 
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

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

Constructor & Destructor Documentation

partrenderer::partrenderer ( const char *  texname,
int  texclamp,
int  type,
int  collide = 0 
)
inline
partrenderer::partrenderer ( int  type,
int  collide = 0 
)
inline
virtual partrenderer::~partrenderer ( )
inlinevirtual

Member Function Documentation

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

Referenced by finddepthfxranges().

virtual particle* partrenderer::addpart ( const vec o,
const vec d,
int  fade,
int  color,
float  size,
int  gravity = 0 
)
pure virtual

Implemented in varenderer< T >, flarerenderer, and listrenderer.

Referenced by newparticle().

void partrenderer::calc ( particle p,
int &  blend,
int &  ts,
vec o,
vec d,
bool  step = true 
)
virtual void partrenderer::cleanup ( )
inlinevirtual

Reimplemented in varenderer< T >, and fireballrenderer.

Referenced by cleanupparticles().

virtual int partrenderer::count ( )
pure virtual
const char * partrenderer::debuginfo ( )
virtual bool partrenderer::haswork ( )
pure virtual

Implemented in varenderer< T >, listrenderer, and flarerenderer.

Referenced by renderparticles().

virtual void partrenderer::init ( int  n)
inlinevirtual

Reimplemented in varenderer< T >.

Referenced by particleinit().

virtual void partrenderer::render ( )
pure virtual

Implemented in varenderer< T >, listrenderer, and flarerenderer.

Referenced by renderparticles().

virtual void partrenderer::reset ( )
pure virtual

Implemented in varenderer< T >, listrenderer, and flarerenderer.

Referenced by clearparticles().

virtual void partrenderer::resettracked ( physent owner)
inlinevirtual

Reimplemented in varenderer< T >, and listrenderer.

Referenced by removetrackedparticles().

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

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

Referenced by newparticle().

virtual void partrenderer::update ( )
inlinevirtual

Reimplemented in varenderer< T >, and lightningrenderer.

Referenced by renderparticles().

Member Data Documentation

int partrenderer::collide
string partrenderer::info
Texture* partrenderer::tex
int partrenderer::texclamp
const char* partrenderer::texname

Referenced by flarerenderer::render().

uint partrenderer::type

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