public interface Loadable
A Loadable object is an asset, such as an image or sound effect, that can be manually loaded and unloaded into and out of memory. Loading may take a moment, but while a Loadable is not loaded, it cannot be used.
Modifier and Type | Method and Description |
---|---|
boolean |
isLoaded()
Returns whether this Loadable is loaded.
|
boolean |
load()
Loads this Loadable if it is not already loaded.
|
boolean |
unload()
Unloads this Loadable if it is currently loaded.
|
boolean isLoaded()
boolean load()
boolean unload()