|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimogl.effect.particle.AbstractParticle
simogl.effect.particle.DLParticle
public class DLParticle
This class represents a particle used as part of a particle system to produce graphical effects. It is realiszed as a display list.
Constructor Summary | |
---|---|
DLParticle(javax.media.opengl.GL gl,
float posX,
float posY,
float posZ,
float velX,
float velY,
float velZ,
long maxAge)
Creates a new particle object with the specified parameters |
|
DLParticle(javax.media.opengl.GL gl,
float size,
Point3D position,
Point3D velocity,
long maxAge)
Creates a new particle object with the specified parameters |
Method Summary | |
---|---|
void |
createDisplayList(javax.media.opengl.GL gl)
This method creates the display list for the particle object. |
void |
draw(javax.media.opengl.GL gl,
float x,
float y,
float z,
com.sun.opengl.util.texture.Texture texture)
Draws the particle to the scene |
Methods inherited from class simogl.effect.particle.AbstractParticle |
---|
getAplha, getColor, getCurrentAge, getFace, getMass, getMaximumAge, getPosition, getSize, getVelocity, setAlpha, setColor, setCurrentAge, setMass, setMaximumAge, setPosition, setPosition, setSize, setVelocity, setVelocity |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DLParticle(javax.media.opengl.GL gl, float size, Point3D position, Point3D velocity, long maxAge)
gl
- size
- size of the particleposition
- particle's positionvelocity
- particle's velocitymaxAge
- maximum age the particle can reach (in miliseconds)public DLParticle(javax.media.opengl.GL gl, float posX, float posY, float posZ, float velX, float velY, float velZ, long maxAge)
gl
- posX
- x-coordinateposY
- y-coordinateposZ
- z-coordinatevelX
- x-velocityvelY
- y-velocityvelZ
- z-velocitymaxAge
- maximum age the particle can reach (in miliseconds)Method Detail |
---|
public void createDisplayList(javax.media.opengl.GL gl)
gl
- public void draw(javax.media.opengl.GL gl, float x, float y, float z, com.sun.opengl.util.texture.Texture texture)
draw
in class AbstractParticle
gl
- x
- x-coordinatey
- y-coordinatez
- z-coordinatetexture
- texture to assign to the particel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |