diff options
author | Renanse <[email protected]> | 2013-03-15 19:26:18 -0500 |
---|---|---|
committer | Renanse <[email protected]> | 2013-03-15 19:26:18 -0500 |
commit | 41e1f7937ac8abd5e36eb804fa60b81f6b9d1a68 (patch) | |
tree | a4cf0c93f512c4db985faa2e11beb9ad3943b924 /ardor3d-core | |
parent | 11f74fc05dbf5b3ff73980ca966e5faac8fc82ee (diff) |
Allow injecting of GameTask directly.
Diffstat (limited to 'ardor3d-core')
-rw-r--r-- | ardor3d-core/src/main/java/com/ardor3d/util/GameTaskQueue.java | 10 |
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.) */ |