gestalt.extension.gpgpu.particles
Class GPGPU3DParticlesSimulation

java.lang.Object
  extended by gestalt.shape.AbstractDrawable
      extended by gestalt.extension.gpgpu.particles.GPGPU3DParticlesSimulation
All Implemented Interfaces:
Drawable

public class GPGPU3DParticlesSimulation
extends AbstractDrawable


Nested Class Summary
 class GPGPU3DParticlesSimulation.DataReadBack
           
 
Field Summary
 Vector3f flow_direction
           
 float flow_speed
           
 
Constructor Summary
GPGPU3DParticlesSimulation(ShaderManager theShaderManager, int theWidth, int theHeight, int theScreenWidth, int theScreenHeight, JoglTexturePlugin theHeightfield, java.lang.String theParticleVertexShader, java.lang.String theParticleFragShader)
           
 
Method Summary
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 ShaderProgram getShaderProgram()
           
 GPGPU3DParticlesSimulation.DataReadBack readback()
           
 void setDeltaTime(float theDeltaTime)
           
 void setResetter(AbstractParticleResetter theResetter)
           
 void setView(AbstractParticleDrawer theView)
           
 
Methods inherited from class gestalt.shape.AbstractDrawable
add, getSortData, getSortValue, isActive, isSortable, setSortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flow_direction

public Vector3f flow_direction

flow_speed

public float flow_speed
Constructor Detail

GPGPU3DParticlesSimulation

public GPGPU3DParticlesSimulation(ShaderManager theShaderManager,
                                  int theWidth,
                                  int theHeight,
                                  int theScreenWidth,
                                  int theScreenHeight,
                                  JoglTexturePlugin theHeightfield,
                                  java.lang.String theParticleVertexShader,
                                  java.lang.String theParticleFragShader)
Method Detail

setView

public void setView(AbstractParticleDrawer theView)

setResetter

public void setResetter(AbstractParticleResetter theResetter)

setDeltaTime

public void setDeltaTime(float theDeltaTime)

getShaderProgram

public ShaderProgram getShaderProgram()

readback

public GPGPU3DParticlesSimulation.DataReadBack readback()

draw

public void draw(GLContext theRenderContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Parameters:
theRenderContext - GLContext


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009