aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-core/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'ardor3d-core/src/main/java')
-rw-r--r--ardor3d-core/src/main/java/com/ardor3d/util/GameTaskQueue.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/ardor3d-core/src/main/java/com/ardor3d/util/GameTaskQueue.java b/ardor3d-core/src/main/java/com/ardor3d/util/GameTaskQueue.java
index 0aab109..0d91186 100644
--- a/ardor3d-core/src/main/java/com/ardor3d/util/GameTaskQueue.java
+++ b/ardor3d-core/src/main/java/com/ardor3d/util/GameTaskQueue.java
@@ -100,6 +100,16 @@ public class GameTaskQueue {
}
/**
+ * Adds the given task to the internal queue to invoked.
+ *
+ * @param <V>
+ * @param task
+ */
+ public <V> void enqueue(final GameTask<V> task) {
+ _queue.add(task);
+ }
+
+ /**
* Execute the tasks from this queue. Note that depending on the queue type, tasks may expect to be run in a certain
* context (for example, the Render queue expects to be run from the Thread owning a GL context.)
*/