org.jdesktop.wonderland.client.jme
Class SceneWorker

java.lang.Object
  extended by org.jdesktop.wonderland.client.jme.SceneWorker

public class SceneWorker
extends java.lang.Object

This utility is similar to SwingWorker, it provides addWorker methods to register work to be executed by MtGame during either commit of compute phase.

Author:
paulby

Method Summary
static void addWorker(org.jdesktop.mtgame.processor.WorkProcessor.WorkCommit work)
          Add some work to be processed during the commit phase.
static void addWorker(org.jdesktop.mtgame.processor.WorkProcessor.WorkCompute work)
          Add some work to be processed during the compute phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addWorker

public static void addWorker(org.jdesktop.mtgame.processor.WorkProcessor.WorkCommit work)
Add some work to be processed during the commit phase. This is the rendering thread so the work should complete as soon as possible.

Parameters:
work -

addWorker

public static void addWorker(org.jdesktop.mtgame.processor.WorkProcessor.WorkCompute work)
Add some work to be processed during the compute phase.

Parameters:
work -


Open Wonderland - http://openwonderland.org