Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ParticleSystem Class Reference

Interactive particle system to create smoke and fire. More...

#include <ParticleSystem.h>

Inherits Object.

Inheritance diagram for ParticleSystem:

Inheritance graph
[legend]
Collaboration diagram for ParticleSystem:

Collaboration graph
[legend]
List of all members.

Public Types

enum  BlendType { Smoke, Glow }

Public Methods

 ParticleSystem (unsigned int maxSize=100)
 ParticleSystem (const Vertex3 &pos, unsigned int maxSize=100)
virtual ~ParticleSystem ()
unsigned int getSize () const
void setSize (unsigned int maxSize)
const Color4getColor () const
float getAngle () const
void setAngle (float a)
float getLife () const
void setLife (float life)
void setColor (const Color4 &c)
bool getGravity () const
void setGravity (bool b)
BlendType getBlendType () const
void setBlendType (BlendType b)
const Vertex3getPosition () const
void setPosition (const Vertex3 &p)
Vertex3 getDirection () const
void setDirection (const Vertex3 &d)
bool update (World &world)
void render (RenderContext &rc, RenderContext::Visibility visibility=RenderContext::PartlyVisible)
void write (WDFFile &f)
void read (WDFFile &f)

Detailed Description

Interactive particle system to create smoke and fire.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.