public class Image2 extends Renderable2
Modifier and Type | Field and Description |
---|---|
static short[] |
DRAW_ORDER_IMAGE |
Constructor and Description |
---|
Image2(Vector2 size,
java.lang.String textureName) |
Image2(Vector2 size,
Texture texture) |
Modifier and Type | Method and Description |
---|---|
float |
getAlpha() |
Vector2 |
getSize() |
java.lang.String |
getTextureName() |
void |
render(float[] vpMatrix)
Render this object
|
void |
setAlpha(float alpha) |
getBoundingBox
attachTo, createShallowCopy, getMaterial, getMesh, init, setMaterial, setMesh
getUntransformedBoundingBox, setBoundingBoxVisible
detach, isDity, onTransformed, setClean
getAbsolutePos, getModelMatrix, getParent, getRelativePos
public Image2(Vector2 size, java.lang.String textureName)
public Vector2 getSize()
public java.lang.String getTextureName()
public void render(float[] vpMatrix)
Renderable
render
in interface IRenderable
render
in class Renderable2
public void setAlpha(float alpha)
setAlpha
in class Renderable2
public float getAlpha()
getAlpha
in class Renderable2