com.jme3.effect
Class ParticleMesh

java.lang.Object
  extended by com.jme3.scene.Mesh
      extended by com.jme3.effect.ParticleMesh
All Implemented Interfaces:
Savable, java.lang.Cloneable
Direct Known Subclasses:
ParticlePointMesh, ParticleTriMesh

public abstract class ParticleMesh
extends Mesh

The ParticleMesh is the underlying visual implementation of a particle emitter.


Nested Class Summary
static class ParticleMesh.Type
          Type of particle mesh
 
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
Mesh.Mode
 
Constructor Summary
ParticleMesh()
           
 
Method Summary
abstract  void initParticleData(ParticleEmitter emitter, int numParticles)
          Initialize mesh data.
abstract  void setImagesXY(int imagesX, int imagesY)
          Set the images on the X and Y coordinates
abstract  void updateParticleData(Particle[] particles, Camera cam, Matrix3f inverseRotation)
          Update the particle visual data.
 
Methods inherited from class com.jme3.scene.Mesh
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, read, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleMesh

public ParticleMesh()
Method Detail

initParticleData

public abstract void initParticleData(ParticleEmitter emitter,
                                      int numParticles)
Initialize mesh data.

Parameters:
emitter - The emitter which will use this ParticleMesh.
numParticles - The maxmimum number of particles to simulate

setImagesXY

public abstract void setImagesXY(int imagesX,
                                 int imagesY)
Set the images on the X and Y coordinates

Parameters:
imagesX - Images on the X coordinate
imagesY - Images on the Y coordinate

updateParticleData

public abstract void updateParticleData(Particle[] particles,
                                        Camera cam,
                                        Matrix3f inverseRotation)
Update the particle visual data. Typically called every frame.