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