Package arc.graphics
Enum Class Cubemap.CubemapSide
- All Implemented Interfaces:
Serializable
,Comparable<Cubemap.CubemapSide>
,Constable
- Enclosing class:
- Cubemap
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
-
Method Summary
Modifier and TypeMethodDescriptiongetDirection
(Vec3 out) int
static Cubemap.CubemapSide
Returns the enum constant of this class with the specified name.static Cubemap.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
The up vector to target the side. -
direction
The 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
- Returns:
- The up vector of the side.
-
getDirection
- Returns:
- The direction vector of the side.
-