com.threerings.tudey.client.util
Class RectangleElement
java.lang.Object
com.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
com.threerings.opengl.scene.SimpleSceneElement
com.threerings.tudey.client.util.RectangleElement
- All Implemented Interfaces:
- Compositable, Enqueueable, SceneElement, SceneObject, Intersectable, Tickable
public class RectangleElement
- extends SimpleSceneElement
Draws a grid-aligned rectangle.
|
Method Summary |
Color4f |
getColor()
Returns a reference to the box color. |
int |
getElevation()
Returns the elevation at which the box is being drawn. |
Rectangle |
getRegion()
Returns a reference to the outlined region. |
void |
setElevation(int elevation)
Sets the elevation at which to draw the box. |
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
getBounds, getIntersection, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
RectangleElement
public RectangleElement(GlContext ctx,
boolean outline)
- Creates a new rectangle element.
getColor
public Color4f getColor()
- Returns a reference to the box color.
getRegion
public Rectangle getRegion()
- Returns a reference to the outlined region.
setElevation
public void setElevation(int elevation)
- Sets the elevation at which to draw the box.
getElevation
public int getElevation()
- Returns the elevation at which the box is being drawn.
Copyright © 2011. All Rights Reserved.