public final class TextureCache extends 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(String filename,
boolean isLinear)
Gets a reference to the texture specified by the given filename.
|
public Texture getTexture(String filename, boolean isLinear)
filename - image file to loadisLinear - is the texture gamma corrected?Texturepublic void flush()
Copyright © 2020. All rights reserved.