|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimogl.effect.particle.AbstractParticleEffect
public abstract class AbstractParticleEffect
This class represents an abstract particle effect. It uses particles and particle containers
Constructor Summary | |
---|---|
AbstractParticleEffect(float x,
float y,
float z,
int numberOfParticles,
long maxPartAge,
long creationIntervall)
Creates a new particle effect with the specified parameters |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl,
long elapsedTime)
Draws the particle effect to the scene |
void |
setEnabled(boolean enable)
Sets whether the particle effect shall be drawn |
void |
setPosition(float x,
float y,
float z)
Sets the position of the effect |
void |
setPosition(Point3D position)
Sets the position of the effect |
void |
update(long elapsedTime)
Updates the particles of the particle effect |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractParticleEffect(float x, float y, float z, int numberOfParticles, long maxPartAge, long creationIntervall)
x
- x-coordinatey
- y-coordinatez
- z-coordinatenumberOfParticles
- number of maximum particles to usemaxPartAge
- maximum age of a particlecreationIntervall
- intervall between the generation of two particles (in miliseconds)Method Detail |
---|
public void setPosition(Point3D position)
position
- effect's positionpublic void setPosition(float x, float y, float z)
x
- x-coordinatey
- y-coordinatez
- z-coordinatepublic void setEnabled(boolean enable)
enable
- draw particle effect? --> true = yes, false = nopublic void draw(javax.media.opengl.GL gl, long elapsedTime)
gl
- elapsedTime
- time between two famespublic void update(long elapsedTime)
elapsedTime
- time between two frames
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |