gestalt.extension.gpgpu.cawater
Class GPGPUCAWater

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

public class GPGPUCAWater
extends AbstractDrawable


Nested Class Summary
 class GPGPUCAWater.WaterTexture
           
 
Field Summary
 float damping
           
 Vector2f flow_direction
           
 
Constructor Summary
GPGPUCAWater(ShaderManager theShaderManager, JoglTexturePlugin theInputEnergyMap, java.lang.String theParticleFragShader, java.lang.String theWaterDrawerShader)
           
 
Method Summary
 void attachWater(Material theMaterial)
          attaches a texture and a shader to the referenced material.
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 JoglFrameBufferObject getReadBuffer()
           
 
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 Vector2f flow_direction

damping

public float damping
Constructor Detail

GPGPUCAWater

public GPGPUCAWater(ShaderManager theShaderManager,
                    JoglTexturePlugin theInputEnergyMap,
                    java.lang.String theParticleFragShader,
                    java.lang.String theWaterDrawerShader)
Method Detail

attachWater

public void attachWater(Material theMaterial)
attaches a texture and a shader to the referenced material.


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

getReadBuffer

public JoglFrameBufferObject getReadBuffer()


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