com.threerings.opengl.compositor.config
Enum RenderQueueConfig.SortMode

java.lang.Object
  extended by java.lang.Enum<RenderQueueConfig.SortMode>
      extended by com.threerings.opengl.compositor.config.RenderQueueConfig.SortMode
All Implemented Interfaces:
Serializable, Comparable<RenderQueueConfig.SortMode>
Enclosing class:
RenderQueueConfig

public static enum RenderQueueConfig.SortMode
extends Enum<RenderQueueConfig.SortMode>

The available sort modes.


Enum Constant Summary
BACK_TO_FRONT
          Sorts batches by depth, back-to-front.
BY_STATE
          Sorts batches by state, then front-to-back.
FRONT_TO_BACK
          Sorts batches by depth, front-to-back.
NONE
          Leaves batches unsorted.
 
Method Summary
 void sort(List<Batch> batches)
          Sorts the supplied list of batches.
static RenderQueueConfig.SortMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RenderQueueConfig.SortMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final RenderQueueConfig.SortMode NONE
Leaves batches unsorted.


BY_STATE

public static final RenderQueueConfig.SortMode BY_STATE
Sorts batches by state, then front-to-back.


BACK_TO_FRONT

public static final RenderQueueConfig.SortMode BACK_TO_FRONT
Sorts batches by depth, back-to-front.


FRONT_TO_BACK

public static final RenderQueueConfig.SortMode FRONT_TO_BACK
Sorts batches by depth, front-to-back.

Method Detail

values

public static RenderQueueConfig.SortMode[] 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 (RenderQueueConfig.SortMode c : RenderQueueConfig.SortMode.values())
    System.out.println(c);

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

valueOf

public static RenderQueueConfig.SortMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

sort

public void sort(List<Batch> batches)
Sorts the supplied list of batches.



Copyright © 2011. All Rights Reserved.