|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.TextureDict
public class TextureDict
A texture dictionary is used to track the usage of your textures and supply a single point of access for texture resources. It
stores TextureRef
s by their path. If you need to load the same texture in different parts of your application it will
only be loaded into memory once by the dictionary.
Constructor Summary | |
---|---|
TextureDict()
|
Method Summary | |
---|---|
static TextureRef |
loadTexture(java.lang.String path)
Loads a new texture into the dictionary as a reference counted TextureRef . |
static TextureRef |
loadTexture(java.lang.String path,
Texture.TextureFilter minFilter,
Texture.TextureFilter magFilter,
Texture.TextureWrap uwrap,
Texture.TextureWrap vwrap)
Loads a new texture into the dictionary as a reference counted TextureRef . |
static void |
removeTexture(java.lang.String path)
Removes a texture from the dictionary. |
static void |
unloadAll()
Unloads all of the currently managed textures. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextureDict()
Method Detail |
---|
public static TextureRef loadTexture(java.lang.String path)
TextureRef
.
path
- the path to the texture image.
public static TextureRef loadTexture(java.lang.String path, Texture.TextureFilter minFilter, Texture.TextureFilter magFilter, Texture.TextureWrap uwrap, Texture.TextureWrap vwrap)
TextureRef
.
path
- the path to the texture image.minFilter
- minFilter Texture.TextureFilter
.magFilter
- magFilter Texture.TextureFilter
.uwrap
- u-wrapping.vwrap
- v-wrapping.
public static void removeTexture(java.lang.String path)
TextureRef.unload()
instead.
path
- to the texture.public static void unloadAll()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |