Package gaiasky.util.gdx
Enum Class OwnCubemap.CubemapSide
- All Implemented Interfaces:
Serializable
,Comparable<OwnCubemap.CubemapSide>
,Constable
- Enclosing class:
- OwnCubemap
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 ConstantDescriptionThe negative X and second side of the cubemapThe negative Y and fourth side of the cubemapThe negative Z and sixth side of the cubemapThe positive X and first side of the cubemapThe positive Y and third side of the cubemapThe positive Z and fifth side of the cubemap -
Field Summary
Modifier and TypeFieldDescriptionfinal 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 cubemapfinal com.badlogic.gdx.math.Vector3
The up vector to target the side. -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector3
getDirection
(com.badlogic.gdx.math.Vector3 out) int
com.badlogic.gdx.math.Vector3
getUp
(com.badlogic.gdx.math.Vector3 out) static OwnCubemap.CubemapSide
Returns the enum constant of this class with the specified name.static OwnCubemap.CubemapSide[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PositiveX
The positive X and first side of the cubemap -
NegativeX
The negative X and second side of the cubemap -
PositiveY
The positive Y and third side of the cubemap -
NegativeY
The negative Y and fourth side of the cubemap -
PositiveZ
The positive Z and fifth side of the cubemap -
NegativeZ
The negative Z and sixth side of the cubemap
-
-
Field Details
-
index
public final int indexThe zero based index of the side in the cubemap -
glEnum
public final int glEnumThe OpenGL target (used for glTexImage2D) of the side. -
up
public final com.badlogic.gdx.math.Vector3 upThe up vector to target the side. -
direction
public final com.badlogic.gdx.math.Vector3 directionThe direction vector to target the side.
-
-
Method Details
-
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
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 nameNullPointerException
- 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.
-