public class TextureItem extends Inlist<TextureItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
TextureItem.TexturePool |
Inlist.List<T extends Inlist<?>>| Modifier and Type | Field and Description |
|---|---|
Bitmap |
bitmap
temporary Bitmap
|
int |
height |
int |
indices |
boolean |
mipmap |
int |
offset
vertex offset from which this texture is referenced
|
boolean |
repeat |
int |
width
current settings
|
| Constructor and Description |
|---|
TextureItem(Bitmap bitmap) |
TextureItem(Bitmap bitmap,
boolean repeat) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Bind Texture for rendering
[on GL-Thread]
|
static TextureItem |
clone(TextureItem ti) |
TextureItem |
dispose()
Dispose TextureItem
[Threadsafe]
|
static void |
disposeTextures()
Disposed textures are released by MapRenderer after each frame
|
void |
upload()
Upload Image to Texture
[on GL-Thread]
|
appendItem, appendList, get, last, next, prependRelative, push, remove, sizepublic final int width
public final int height
public final boolean repeat
public int offset
public int indices
public Bitmap bitmap
public boolean mipmap
public TextureItem(Bitmap bitmap)
public TextureItem(Bitmap bitmap, boolean repeat)
public static TextureItem clone(TextureItem ti)
public void upload()
public void bind()
@CheckReturnValue public TextureItem dispose()
public static void disposeTextures()