![]() |
Public API Reference |
#include <particle.h>
Inheritance diagram for iParticle:
Public Methods | |
virtual void | SetPosition (const csVector3 &pos)=0 |
Set the position of this particle in coordinates relative to the parent particle system. More... | |
virtual void | MovePosition (const csVector3 &move)=0 |
Move the particle relative to position. More... | |
virtual void | SetColor (const csColor &col)=0 |
Set the color of this particle. More... | |
virtual void | AddColor (const csColor &col)=0 |
Add color to the color of the sprite. More... | |
virtual void | ScaleBy (float factor)=0 |
Scale particle by this factor. More... | |
virtual void | SetMixMode (uint mode)=0 |
Set the MixMode for the particle. More... | |
virtual void | Rotate (float angle)=0 |
Rotate the particle is some particle dependent manner, in radians. More... | |
virtual void | Draw (iRenderView *rview, const csReversibleTransform &transform, csZBufMode zbufMode)=0 |
Draw this particle. More... | |
virtual void | UpdateLighting (iLight **lights, int num_lights, const csReversibleTransform &transform)=0 |
Light this particle. More... |
Each particle may perform these operations in it's own manner, Or even do nothing at some of the functions. If some are not implemented, functionality depending on that feature may not work.
Definition at line 38 of file particle.h.
|
Add color to the color of the sprite.
|
|
Draw this particle. The given transform is the transform of the parent particle system. The position of this particle should be relative to that transform. |
|
Move the particle relative to position.
|
|
Rotate the particle is some particle dependent manner, in radians.
|
|
Scale particle by this factor.
|
|
Set the color of this particle.
|
|
Set the MixMode for the particle.
|
|
Set the position of this particle in coordinates relative to the parent particle system.
|
|
Light this particle. The given transform is the transform of the parent particle system. The position of this particle should be relative to that transform. |