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
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The negative X and second side of the cubemap
    The negative Y and fourth side of the cubemap
    The negative Z and sixth side of the cubemap
    The positive X and first side of the cubemap
    The positive Y and third side of the cubemap
    The positive Z and fifth side of the cubemap
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final com.badlogic.gdx.math.Vector3
    The direction vector to target the side.
    final int
    The OpenGL target (used for glTexImage2D) of the side.
    final int
    The zero based index of the side in the cubemap
    final com.badlogic.gdx.math.Vector3
    The up vector to target the side.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.badlogic.gdx.math.Vector3
    getDirection(com.badlogic.gdx.math.Vector3 out)
     
    int
     
    com.badlogic.gdx.math.Vector3
    getUp(com.badlogic.gdx.math.Vector3 out)
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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.