public class Atlas
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
SmartTexture |
tx |
Constructor and Description |
---|
Atlas(SmartTexture tx) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object key,
int left,
int top,
int right,
int bottom) |
void |
add(java.lang.Object key,
android.graphics.RectF rect) |
android.graphics.RectF |
get(int index) |
android.graphics.RectF |
get(java.lang.Object key) |
void |
grid(int width) |
void |
grid(int width,
int height) |
void |
grid(int left,
int top,
int width,
int height,
int cols) |
float |
height(android.graphics.RectF rect) |
static android.graphics.RectF |
uvRect(SmartTexture tx,
int left,
int top,
int right,
int bottom) |
float |
width(android.graphics.RectF rect) |
public SmartTexture tx
public Atlas(SmartTexture tx)
public void add(java.lang.Object key, int left, int top, int right, int bottom)
public void add(java.lang.Object key, android.graphics.RectF rect)
public void grid(int width)
public void grid(int width, int height)
public void grid(int left, int top, int width, int height, int cols)
public android.graphics.RectF get(int index)
public android.graphics.RectF get(java.lang.Object key)
public float width(android.graphics.RectF rect)
public float height(android.graphics.RectF rect)
public static android.graphics.RectF uvRect(SmartTexture tx, int left, int top, int right, int bottom)