public class AtlasFrame
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Atlas |
mAtlas |
protected int |
mIndex |
protected java.lang.String |
mName |
PointF |
mOffset |
protected RectF |
mRect |
protected PointF |
mSize |
protected Texture |
mTexture |
protected float[] |
mTextureCoords |
Constructor and Description |
---|
AtlasFrame(Atlas atlas,
int index,
java.lang.String name,
float left,
float top,
float right,
float bottom) |
AtlasFrame(Atlas atlas,
int index,
java.lang.String name,
RectF rect) |
AtlasFrame(Texture texture,
int index,
java.lang.String name) |
AtlasFrame(Texture texture,
int index,
java.lang.String name,
RectF rect) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
java.lang.String |
getName() |
RectF |
getRect() |
PointF |
getSize() |
Texture |
getTexture() |
float[] |
getTextureCoords() |
protected void |
rotateCCW() |
protected void |
rotateCW() |
void |
setRect(float left,
float top,
float right,
float bottom) |
void |
setRect(RectF rect) |
void |
setTexture(Texture texture) |
java.lang.String |
toString() |
protected Atlas mAtlas
protected RectF mRect
protected float[] mTextureCoords
protected PointF mSize
public PointF mOffset
protected Texture mTexture
protected final int mIndex
protected final java.lang.String mName
public AtlasFrame(Atlas atlas, int index, java.lang.String name, float left, float top, float right, float bottom)
public AtlasFrame(Atlas atlas, int index, java.lang.String name, RectF rect)
public AtlasFrame(Texture texture, int index, java.lang.String name, RectF rect)
public AtlasFrame(Texture texture, int index, java.lang.String name)
public void setRect(float left, float top, float right, float bottom)
protected void rotateCCW()
protected void rotateCW()
public void setRect(RectF rect)
public RectF getRect()
public PointF getSize()
public float[] getTextureCoords()
public int getIndex()
public java.lang.String getName()
public void setTexture(Texture texture)
public Texture getTexture()
public java.lang.String toString()
toString
in class java.lang.Object