ParticleSystem

Undocumented in source.

Constructors

this
this(Entity e, uint numParticles)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addForceField
void addForceField(ForceField ff)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(RenderingContext* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
resetParticle
void resetParticle(Particle p)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
updateParticle
void updateParticle(Particle p, double dt)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

airFrictionDamping
float airFrictionDamping;
Undocumented in source.
eao
GLuint eao;
Undocumented in source.
emitting
bool emitting;
Undocumented in source.
endColor
Color4f endColor;
Undocumented in source.
forceFields
DynamicArray!ForceField forceFields;
Undocumented in source.
haveParticlesToDraw
bool haveParticlesToDraw;
Undocumented in source.
indices
uint[3][2] indices;
Undocumented in source.
initialDirection
Vector3f initialDirection;
Undocumented in source.
initialDirectionRandomFactor
float initialDirectionRandomFactor;
Undocumented in source.
initialPositionRandomRadius
float initialPositionRandomRadius;
Undocumented in source.
invViewMatRot
Matrix4x4f invViewMatRot;
Undocumented in source.
material
GenericMaterial material;
Undocumented in source.
maxInitialSpeed
float maxInitialSpeed;
Undocumented in source.
maxLifetime
float maxLifetime;
Undocumented in source.
maxSize
float maxSize;
Undocumented in source.
minInitialSpeed
float minInitialSpeed;
Undocumented in source.
minLifetime
float minLifetime;
Undocumented in source.
minSize
float minSize;
Undocumented in source.
particles
Particle[] particles;
Undocumented in source.
scaleStep
Vector2f scaleStep;
Undocumented in source.
startColor
Color4f startColor;
Undocumented in source.
tbo
GLuint tbo;
Undocumented in source.
texcoords
Vector2f[4] texcoords;
Undocumented in source.
vao
GLuint vao;
Undocumented in source.
vbo
GLuint vbo;
Undocumented in source.
vertices
Vector3f[4] vertices;
Undocumented in source.

Inherited Members

From Behaviour

entity
Entity entity;
Undocumented in source.
update
void update(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind()
Undocumented in source. Be warned that the author may not have intended to support it.
unbind
void unbind()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(RenderingContext* rc)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta