org.xith3d.render
Enum Renderer.OpaqueSortingPolicy

java.lang.Object
  extended by java.lang.Enum<Renderer.OpaqueSortingPolicy>
      extended by org.xith3d.render.Renderer.OpaqueSortingPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Renderer.OpaqueSortingPolicy>
Enclosing class:
Renderer

public static enum Renderer.OpaqueSortingPolicy
extends java.lang.Enum<Renderer.OpaqueSortingPolicy>


Enum Constant Summary
CUSTOM
          Indicates, that a custom RenderBinSorter is being used
SORT_BY_STATES
          Opaque shapes are sorted by states (minimize render states changes for maximum performance)
SORT_BY_STATES_ORDERED
          Opaque shapes are sorted by states (minimize render states changes for maximum performance) with respect to the Node's OrderedState.
SORT_BY_Z_VALUE
          Opaque shapes are sorted by z-value
SORT_FRONT_TO_BACK
          Opaque shapes are sorted from front to back
SORT_NONE
          No sorting is done
 
Method Summary
 RenderBinSorter getSorter()
           
static Renderer.OpaqueSortingPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Renderer.OpaqueSortingPolicy[] 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

SORT_NONE

public static final Renderer.OpaqueSortingPolicy SORT_NONE
No sorting is done


SORT_BY_STATES

public static final Renderer.OpaqueSortingPolicy SORT_BY_STATES
Opaque shapes are sorted by states (minimize render states changes for maximum performance)


SORT_BY_STATES_ORDERED

public static final Renderer.OpaqueSortingPolicy SORT_BY_STATES_ORDERED
Opaque shapes are sorted by states (minimize render states changes for maximum performance) with respect to the Node's OrderedState.


SORT_FRONT_TO_BACK

public static final Renderer.OpaqueSortingPolicy SORT_FRONT_TO_BACK
Opaque shapes are sorted from front to back


SORT_BY_Z_VALUE

public static final Renderer.OpaqueSortingPolicy SORT_BY_Z_VALUE
Opaque shapes are sorted by z-value


CUSTOM

public static final Renderer.OpaqueSortingPolicy CUSTOM
Indicates, that a custom RenderBinSorter is being used

Method Detail

values

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

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

valueOf

public static Renderer.OpaqueSortingPolicy 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

getSorter

public RenderBinSorter getSorter()