Package com.nevergarden.myna.util
Class AsyncTexture
- java.lang.Object
-
- com.nevergarden.myna.events.EventDispatcher
-
- com.nevergarden.myna.util.AsyncTexture
-
- All Implemented Interfaces:
java.lang.Runnable
public class AsyncTexture extends EventDispatcher implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description AssetManager
assetManager
int
id
-
Fields inherited from class com.nevergarden.myna.events.EventDispatcher
eventListeners
-
-
Constructor Summary
Constructors Constructor Description AsyncTexture(AssetManager assetManager, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Texture
getTexture()
void
run()
-
Methods inherited from class com.nevergarden.myna.events.EventDispatcher
addEventListener, dispatchEvent, dispatchEventWith, dispatchEventWith, dispose, hasEventListener, invokeEvent, removeEventListener, removeEventListeners
-
-
-
-
Field Detail
-
id
public final int id
-
assetManager
public final AssetManager assetManager
-
-
Constructor Detail
-
AsyncTexture
public AsyncTexture(AssetManager assetManager, int id)
-
-
Method Detail
-
getTexture
public Texture getTexture()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-