public class TextureDict
extends java.lang.Object
A texture dictionary is used to track the usage of your textures and supply a single point of access for texture resources. It
stores TextureRefs 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 and Description |
|---|
TextureDict()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static TextureRef |
loadTexture(java.lang.String path)
Deprecated.
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)
Deprecated.
Loads a new texture into the dictionary as a reference counted
TextureRef. |
static void |
removeTexture(java.lang.String path)
Deprecated.
Removes a texture from the dictionary.
|
static void |
unloadAll()
Deprecated.
Unloads all of the currently managed textures.
|
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()