/** * This method adds <code>callable</code> to the queue to be invoked in the render() method in the OpenGL thread. * The Future returned may be utilized to cancel the task or wait for the return object. * * @param callable * @return Future<V> */ public <V> Future<V> render(final Callable<V> callable) { return getQueue(GameTaskQueue.RENDER).enqueue(callable); } }
/** * This method adds <code>callable</code> to the queue to be invoked in the update() method in the OpenGL thread. * The Future returned may be utilized to cancel the task or wait for the return object. * * @param callable * @return Future<V> */ public <V> Future<V> update(final Callable<V> callable) { return getQueue(GameTaskQueue.UPDATE).enqueue(callable); }
/** * This method adds <code>callable</code> to the queue to be invoked in the update() method in the OpenGL thread. * The Future returned may be utilized to cancel the task or wait for the return object. * * @param callable * @return Future<V> */ public <V> Future<V> update(final Callable<V> callable) { return getQueue(GameTaskQueue.UPDATE).enqueue(callable); }
/** * This method adds <code>callable</code> to the queue to be invoked in the render() method in the OpenGL thread. * The Future returned may be utilized to cancel the task or wait for the return object. * * @param callable * @return Future<V> */ public <V> Future<V> render(final Callable<V> callable) { return getQueue(GameTaskQueue.RENDER).enqueue(callable); } }