|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
TextureCache()
|
|
| 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 |
| Constructor Detail |
|---|
public TextureCache()
| Method Detail |
|---|
public static Texture getTexture(java.lang.String filename,
boolean isLinear)
filename - image file to loadisLinear - is the texture gamma corrected?
Texturepublic static void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||