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

#include <lensflare.hpp>

Inheritance diagram for flarerenderer:
partrenderer

Public Member Functions

 flarerenderer (const char *texname, int maxflares)
 
 ~flarerenderer () override
 
void reset () override
 
void newflare (vec &o, const vec &center, uchar r, uchar g, uchar b, float mod, float size, bool sun, bool sparkle)
 
void addflare (vec &o, uchar r, uchar g, uchar b, bool sun, bool sparkle)
 
void makelightflares ()
 
int count () override
 
bool haswork () override
 
void render () override
 
particleaddpart (const vec &o, const vec &d, int fade, int color, float size, int gravity=0) override
 
virtual void init (int n)
 
virtual void resettracked (physent *owner)
 
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

int maxflares
 
int numflares
 
unsigned int shinetime
 
flareflares
 
Texturetex
 
const char * texname
 
int texclamp
 
uint type
 
int collide
 
string info
 

Constructor & Destructor Documentation

flarerenderer::flarerenderer ( const char *  texname,
int  maxflares 
)
inline

References flares, and maxflares.

flarerenderer::~flarerenderer ( )
inlineoverride

References flares.

Member Function Documentation

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

Referenced by finddepthfxranges().

void flarerenderer::addflare ( vec o,
uchar  r,
uchar  g,
uchar  b,
bool  sun,
bool  sparkle 
)
inline
particle* flarerenderer::addpart ( const vec o,
const vec d,
int  fade,
int  color,
float  size,
int  gravity = 0 
)
inlineoverridevirtual

Implements partrenderer.

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 flarerenderer::count ( )
inlineoverridevirtual

Implements partrenderer.

References numflares.

const char * partrenderer::debuginfo ( )
inherited
bool flarerenderer::haswork ( )
inlineoverridevirtual

Implements partrenderer.

References glaring, numflares, reflecting, and refracting.

virtual void partrenderer::init ( int  n)
inlinevirtualinherited

Reimplemented in varenderer< T >.

Referenced by particleinit().

void flarerenderer::makelightflares ( )
inline
void flarerenderer::newflare ( vec o,
const vec center,
uchar  r,
uchar  g,
uchar  b,
float  mod,
float  size,
bool  sun,
bool  sparkle 
)
inline
void flarerenderer::render ( )
inlineoverridevirtual
void flarerenderer::reset ( )
inlineoverridevirtual

Implements partrenderer.

References numflares.

virtual void partrenderer::resettracked ( physent owner)
inlinevirtualinherited

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 
)
inlinevirtualinherited

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

Referenced by newparticle().

virtual void partrenderer::update ( )
inlinevirtualinherited

Reimplemented in varenderer< T >, and lightningrenderer.

Referenced by renderparticles().

Member Data Documentation

int partrenderer::collide
inherited
flare* flarerenderer::flares
string partrenderer::info
inherited
int flarerenderer::maxflares

Referenced by flarerenderer(), and newflare().

int flarerenderer::numflares
unsigned int flarerenderer::shinetime

Referenced by makelightflares(), and render().

Texture* partrenderer::tex
inherited
int partrenderer::texclamp
inherited
const char* partrenderer::texname
inherited

Referenced by render().

uint partrenderer::type
inherited

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