com.threerings.tudey.client.util
Class ShapeSceneElement
java.lang.Object
com.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
com.threerings.opengl.scene.SimpleSceneElement
com.threerings.tudey.client.util.ShapeSceneElement
- All Implemented Interfaces:
- Compositable, Enqueueable, SceneElement, SceneObject, Intersectable, Tickable
public class ShapeSceneElement
- extends SimpleSceneElement
Draws a shape in the scene.
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
getBounds, getIntersection, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
ShapeSceneElement
public ShapeSceneElement(GlContext ctx,
boolean outline)
- Creates a new shape scene element.
setShape
public void setShape(Shape shape)
- Sets the shape to draw.
getShape
public Shape getShape()
- Returns a reference to the shape being drawn.
getColor
public Color4f getColor()
- Returns a reference to the color.
Copyright © 2011. All Rights Reserved.