Enum Class OwnCubemap.CubemapSide

java.lang.Object
java.lang.Enum<OwnCubemap.CubemapSide>
gaiasky.util.gdx.OwnCubemap.CubemapSide
All Implemented Interfaces:
Serializable, Comparable<OwnCubemap.CubemapSide>, Constable
Enclosing class:
OwnCubemap

public static enum OwnCubemap.CubemapSide extends Enum<OwnCubemap.CubemapSide>
Enum to identify each side of a Cubemap
  • Enum Constant Details

    • PositiveX

      public static final OwnCubemap.CubemapSide PositiveX
      The positive X and first side of the cubemap
    • NegativeX

      public static final OwnCubemap.CubemapSide NegativeX
      The negative X and second side of the cubemap
    • PositiveY

      public static final OwnCubemap.CubemapSide PositiveY
      The positive Y and third side of the cubemap
    • NegativeY

      public static final OwnCubemap.CubemapSide NegativeY
      The negative Y and fourth side of the cubemap
    • PositiveZ

      public static final OwnCubemap.CubemapSide PositiveZ
      The positive Z and fifth side of the cubemap
    • NegativeZ

      public static final OwnCubemap.CubemapSide NegativeZ
      The negative Z and sixth side of the cubemap
  • Field Details

    • index

      public final int index
      The zero based index of the side in the cubemap
    • glEnum

      public final int glEnum
      The OpenGL target (used for glTexImage2D) of the side.
    • up

      public final com.badlogic.gdx.math.Vector3 up
      The up vector to target the side.
    • direction

      public final com.badlogic.gdx.math.Vector3 direction
      The direction vector to target the side.
  • Method Details

    • values

      public static OwnCubemap.CubemapSide[] 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 OwnCubemap.CubemapSide 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
    • getGLEnum

      public int getGLEnum()
      Returns:
      The OpenGL target (used for glTexImage2D) of the side.
    • getUp

      public com.badlogic.gdx.math.Vector3 getUp(com.badlogic.gdx.math.Vector3 out)
      Returns:
      The up vector of the side.
    • getDirection

      public com.badlogic.gdx.math.Vector3 getDirection(com.badlogic.gdx.math.Vector3 out)
      Returns:
      The direction vector of the side.