public final class TextureCache
extends java.lang.Object
| Constructor and Description |
|---|
TextureCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flush all textures from the cache, this will cause them to be reloaded
anew the next time they are accessed.
|
Texture |
getTexture(java.lang.String filename,
boolean isLinear)
Gets a reference to the texture specified by the given filename.
|
public Texture getTexture(java.lang.String filename, boolean isLinear)
filename - image file to loadisLinear - is the texture gamma corrected?Texturepublic void flush()