public class Rectangle2 extends Renderable2
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BORDER_WIDTH |
static Color |
DEFAULT_COLOR |
static short[] |
DRAW_ORDER_BORDER |
static short[] |
DRAW_ORDER_QUAD |
Constructor and Description |
---|
Rectangle2(Vector2 size) |
Rectangle2(Vector2 size,
Color color) |
Modifier and Type | Method and Description |
---|---|
Color |
getColor() |
Vector2 |
getSize() |
void |
render(float[] vpMatrix)
Render this object
|
void |
setBorder(int borderWidth) |
void |
setFilled(boolean filled) |
getAlpha, getBoundingBox, setAlpha
attachTo, createShallowCopy, getMaterial, getMesh, init, setMaterial, setMesh
getUntransformedBoundingBox, setBoundingBoxVisible
detach, isDity, onTransformed, setClean
getAbsolutePos, getModelMatrix, getParent, getRelativePos
public static final Color DEFAULT_COLOR
public static final int DEFAULT_BORDER_WIDTH
public static final short[] DRAW_ORDER_QUAD
public static final short[] DRAW_ORDER_BORDER
public Rectangle2(Vector2 size)
public Vector2 getSize()
public void setFilled(boolean filled)
public void setBorder(int borderWidth)
public void render(float[] vpMatrix)
Renderable
render
in interface IRenderable
render
in class Renderable2
public Color getColor()