org.xith3d.loop
Enum RenderLoop.RunMode

java.lang.Object
  extended by java.lang.Enum<RenderLoop.RunMode>
      extended by org.xith3d.loop.RenderLoop.RunMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RenderLoop.RunMode>
Enclosing class:
RenderLoop

public static enum RenderLoop.RunMode
extends java.lang.Enum<RenderLoop.RunMode>

You can start the RenderLoop in the same Thread as the app itself or in a separate one.


Enum Constant Summary
RUN_IN_SAME_THREAD
          Let the RenderLoop run in the same Thread.
RUN_IN_SEPARATE_THREAD
          Let the RenderLoop run in a separate Thread.
RUN_IN_SEPARATE_THREAD_AND_WAIT
          Let the RenderLoop run in a separate Thread and wait for nextIteration() invokation.
 
Method Summary
static RenderLoop.RunMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RenderLoop.RunMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RUN_IN_SAME_THREAD

public static final RenderLoop.RunMode RUN_IN_SAME_THREAD
Let the RenderLoop run in the same Thread.


RUN_IN_SEPARATE_THREAD

public static final RenderLoop.RunMode RUN_IN_SEPARATE_THREAD
Let the RenderLoop run in a separate Thread.


RUN_IN_SEPARATE_THREAD_AND_WAIT

public static final RenderLoop.RunMode RUN_IN_SEPARATE_THREAD_AND_WAIT
Let the RenderLoop run in a separate Thread and wait for nextIteration() invokation.

See Also:
RenderLoop.nextFrame()
Method Detail

values

public static RenderLoop.RunMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RenderLoop.RunMode c : RenderLoop.RunMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RenderLoop.RunMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null