gestalt.candidates.shadow
Class JoglShadowMap
java.lang.Object
gestalt.shape.AbstractDrawable
gestalt.candidates.shadow.JoglShadowMap
- All Implemented Interfaces:
- Drawable
public class JoglShadowMap
- extends AbstractDrawable
|
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shadowcolor
public Color shadowcolor
enabled
public boolean enabled
lightcamera
public final JoglCamera lightcamera
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)
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