gestalt.candidates.shadow
Class JoglGLSLShadowMap

java.lang.Object
  extended by gestalt.shape.AbstractDrawable
      extended by gestalt.candidates.shadow.JoglGLSLShadowMap
All Implemented Interfaces:
Drawable

public class JoglGLSLShadowMap
extends AbstractDrawable


Field Summary
 JoglCamera lightcamera
           
 
Constructor Summary
JoglGLSLShadowMap(Light theLight, int theTextureWidth, int theTextureHeight)
           
JoglGLSLShadowMap(Light theLight, int theTextureWidth, int theTextureHeight, int theTextureUnitID)
           
 
Method Summary
 void addShape(Drawable theShape)
           
 void disableShadow(GL gl)
           
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 void enableShadow(GL gl)
           
 JoglFrameBufferObject fbo()
           
 AbstractBin getBin()
           
 int getOpenGLTextureID()
           
 int getTextureHeight()
           
 int getTextureTarget()
           
 int getTextureUnit()
           
 int getTextureWidth()
           
 Light light()
           
 Drawable removeDrawable(Drawable theShape)
           
 void setBin(AbstractBin theBin)
           
 
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

lightcamera

public final JoglCamera lightcamera
Constructor Detail

JoglGLSLShadowMap

public JoglGLSLShadowMap(Light theLight,
                         int theTextureWidth,
                         int theTextureHeight)

JoglGLSLShadowMap

public JoglGLSLShadowMap(Light theLight,
                         int theTextureWidth,
                         int theTextureHeight,
                         int theTextureUnitID)
Method Detail

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

disableShadow

public void disableShadow(GL gl)

enableShadow

public void enableShadow(GL gl)

light

public Light light()

getTextureUnit

public int getTextureUnit()

getTextureWidth

public int getTextureWidth()

getTextureHeight

public int getTextureHeight()

getOpenGLTextureID

public int getOpenGLTextureID()

addShape

public void addShape(Drawable theShape)

removeDrawable

public Drawable removeDrawable(Drawable theShape)

setBin

public void setBin(AbstractBin theBin)

getBin

public AbstractBin getBin()

getTextureTarget

public int getTextureTarget()

fbo

public JoglFrameBufferObject fbo()


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