gestalt.candidates.shadow
Class JoglShadowMap

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

public class JoglShadowMap
extends AbstractDrawable


Field Summary
 boolean enabled
           
 JoglCamera lightcamera
           
 Color shadowcolor
           
 
Constructor Summary
JoglShadowMap(Light theLight, int theTextureWidth, int theTextureHeight, boolean theUseNonPowerOfTwoTexture, boolean theUseFBO)
           
JoglShadowMap(Light theLight, int theTextureWidth, int theTextureHeight, int theTextureUnitID, boolean theUseNonPowerOfTwoTexture, boolean theUseFBO)
           
 
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)
           
 AbstractBin getBin()
           
 int getTextureHeight()
           
 int getTextureID()
           
 int getTextureTargetID()
           
 int getTextureUnit()
           
 int getTextureWidth()
           
 boolean isShadowEnabled()
           
 Light light()
           
 boolean querryShadowExtensionState(GL gl)
           
 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

shadowcolor

public Color shadowcolor

enabled

public boolean enabled

lightcamera

public final JoglCamera lightcamera
Constructor Detail

JoglShadowMap

public JoglShadowMap(Light theLight,
                     int theTextureWidth,
                     int theTextureHeight,
                     boolean theUseNonPowerOfTwoTexture,
                     boolean theUseFBO)

JoglShadowMap

public JoglShadowMap(Light theLight,
                     int theTextureWidth,
                     int theTextureHeight,
                     int theTextureUnitID,
                     boolean theUseNonPowerOfTwoTexture,
                     boolean theUseFBO)
Method Detail

light

public Light light()

getTextureUnit

public int getTextureUnit()

getTextureWidth

public int getTextureWidth()

getTextureHeight

public int getTextureHeight()

getTextureTargetID

public int getTextureTargetID()

getTextureID

public int getTextureID()

addShape

public void addShape(Drawable theShape)

removeDrawable

public Drawable removeDrawable(Drawable theShape)

setBin

public void setBin(AbstractBin theBin)

getBin

public AbstractBin getBin()

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

isShadowEnabled

public boolean isShadowEnabled()

querryShadowExtensionState

public boolean querryShadowExtensionState(GL gl)

disableShadow

public void disableShadow(GL gl)

enableShadow

public void enableShadow(GL gl)


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