gestalt.candidates
Class JoglCulling
java.lang.Object
gestalt.shape.AbstractDrawable
gestalt.candidates.JoglCulling
- All Implemented Interfaces:
- Drawable
public class JoglCulling
- extends AbstractDrawable
- To do:
- put copyright notice here...
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FAST
public boolean FAST
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
BOTTOM
public static final int BOTTOM
- See Also:
- Constant Field Values
TOP
public static final int TOP
- See Also:
- Constant Field Values
FAR
public static final int FAR
- See Also:
- Constant Field Values
NEAR
public static final int NEAR
- See Also:
- Constant Field Values
JoglCulling
public JoglCulling()
draw
public void draw(GLContext theContext)
- 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:
theContext - GLContext
setActive
public void setActive(boolean theIsActive)
isActive
public boolean isActive()
- Description copied from interface:
Drawable
- returns whether the drawable is active. it is commonly implemented
so that the drawables 'draw' method will be ommitted if 'isActive'
return false, although this behavior can vary depending on the
implementation.
- Specified by:
isActive in interface Drawable- Overrides:
isActive in class AbstractDrawable
- Returns:
- boolean
sphereInFrustum
public boolean sphereInFrustum(Vector3f thePosition,
float theRadius)
pointInFrustum
public boolean pointInFrustum(Vector3f thePosition)
pointInFrustumSide
public int pointInFrustumSide(Vector3f thePosition)
sphereInFrustumSide
public int sphereInFrustumSide(Vector3f thePosition,
float theRadius)
frustum
public float[][] frustum()
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009