public class MotionLibrary extends AssetLibrary<ReaderSettings,AsyncMotion>
AsyncMotion.| Constructor and Description |
|---|
MotionLibrary() |
MotionLibrary(boolean concurrent) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ReaderSettings assetKey,
AsyncMotion asset)
Add an asset to the library.
|
boolean |
contains(java.lang.String id) |
void |
destroy()
Destroy all models from this
MotionLibrary |
void |
destroy(AsyncMotion asyncMotion)
Destroy the specified motion from this
MotionLibrary |
AsyncMotion |
get(java.lang.String id) |
ReaderSettings |
getKey(java.lang.String id) |
void |
onContextLost() |
AsyncMotion |
remove(java.lang.String id) |
assets, clear, contains, get, getKey, iterator, remove, removeValue, sizepublic MotionLibrary()
public MotionLibrary(boolean concurrent)
public void add(ReaderSettings assetKey, AsyncMotion asset) throws java.lang.IllegalArgumentException
AssetLibraryadd in class AssetLibrary<ReaderSettings,AsyncMotion>assetKey - asset key, usually the loading informationasset - asset to store in the libraryjava.lang.IllegalArgumentException - when the asset is already in the librarypublic AsyncMotion get(java.lang.String id)
id - name identifier for the keypublic ReaderSettings getKey(java.lang.String id)
id - name identifier for the keypublic AsyncMotion remove(java.lang.String id)
id - name of the asset to removepublic boolean contains(java.lang.String id)
public final void destroy()
MotionLibrarypublic final void destroy(AsyncMotion asyncMotion)
MotionLibrarypublic final void onContextLost()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com