public class TextureMap
extends java.lang.Object
implements com.badlogic.gdx.utils.Disposable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
errortexture |
java.lang.String |
path |
| Constructor and Description |
|---|
TextureMap(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
com.badlogic.gdx.graphics.Texture |
get(java.lang.String name) |
boolean |
has(java.lang.String name) |
void |
put(java.lang.String name,
com.badlogic.gdx.graphics.Texture texture) |
void |
repeatWrap(java.lang.String... textures)
Sets all the textures in the array to TextureWrap.Repeat.
|
public TextureMap(java.lang.String path)
path - Directory to load textures from. It will load textures at
runtime as requested.public void repeatWrap(java.lang.String... textures)
public com.badlogic.gdx.graphics.Texture get(java.lang.String name)
name - of texture you want to find.public void put(java.lang.String name,
com.badlogic.gdx.graphics.Texture texture)
public boolean has(java.lang.String name)
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposable