|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.core.TextureCache
public final class TextureCache
Maintains a cache of all loaded texture maps. This is usefull if the same texture might be used more than once in your scene.
Method Summary | |
---|---|
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(java.lang.String filename,
boolean isLinear)
Gets a reference to the texture specified by the given filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Texture getTexture(java.lang.String filename, boolean isLinear)
filename
- image file to loadisLinear
- is the texture gamma corrected?
Texture
public static void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |