public class TextureAtlas extends Inlist<TextureAtlas>
| Modifier and Type | Class and Description |
|---|---|
static class |
TextureAtlas.Rect |
static class |
TextureAtlas.Slot |
Inlist.List<T extends Inlist<?>>| Modifier and Type | Field and Description |
|---|---|
TextureAtlas.Slot |
mSlots
Allocated slots
|
TextureItem |
texture |
| Constructor and Description |
|---|
TextureAtlas(Bitmap bitmap) |
TextureAtlas(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTextureRegion(java.lang.Object key,
TextureAtlas.Rect r) |
void |
clear() |
static TextureAtlas |
create(int width,
int height,
int depth) |
TextureAtlas.Rect |
getRegion(int width,
int height) |
java.util.Map<java.lang.Object,TextureRegion> |
getRegions() |
TextureRegion |
getTextureRegion(java.lang.Object key) |
appendItem, appendList, get, last, next, prependRelative, push, remove, sizepublic TextureAtlas.Slot mSlots
public TextureItem texture
public TextureAtlas(int width,
int height)
public TextureAtlas(Bitmap bitmap)
public void addTextureRegion(java.lang.Object key,
TextureAtlas.Rect r)
public TextureRegion getTextureRegion(java.lang.Object key)
public TextureAtlas.Rect getRegion(int width, int height)
public java.util.Map<java.lang.Object,TextureRegion> getRegions()
public void clear()
public static TextureAtlas create(int width, int height, int depth)