Enum Class RenderType

java.lang.Object
java.lang.Enum<RenderType>
de.gurkenlabs.litiengine.graphics.RenderType
All Implemented Interfaces:
Serializable, Comparable<RenderType>, Constable

public enum RenderType extends Enum<RenderType>
The RenderType defines how and when something is being rendered by the rendering pipeline of the Environment.
See Also:
  • Enum Constant Details

    • NONE

      public static final RenderType NONE
      Not rendered by the environment pipeline.
    • BACKGROUND

      public static final RenderType BACKGROUND
      Background layer (rendered first).
    • GROUND

      public static final RenderType GROUND
      Ground layer.
    • SURFACE

      public static final RenderType SURFACE
      Surface layer above the ground.
    • NORMAL

      public static final RenderType NORMAL
      Default rendering layer for entities.
    • OVERLAY

      public static final RenderType OVERLAY
      Overlay layer above the default entities.
    • UI

      public static final RenderType UI
      UI layer (rendered last).
  • Method Details

    • values

      public static RenderType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RenderType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOrder

      public int getOrder()
      Gets the integer order used to sort render types within the rendering pipeline.
      Returns:
      the render order