Package com.badlogic.gdx.graphics
Enum Cubemap.CubemapSide
- java.lang.Object
-
- java.lang.Enum<Cubemap.CubemapSide>
-
- com.badlogic.gdx.graphics.Cubemap.CubemapSide
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Cubemap.CubemapSide>
- Enclosing class:
- Cubemap
public static enum Cubemap.CubemapSide extends java.lang.Enum<Cubemap.CubemapSide>
Enum to identify each side of a Cubemap
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NegativeX
The negative X and second side of the cubemapNegativeY
The negative Y and fourth side of the cubemapNegativeZ
The negative Z and sixth side of the cubemapPositiveX
The positive X and first side of the cubemapPositiveY
The positive Y and third side of the cubemapPositiveZ
The positive Z and fifth side of the cubemap
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3
getDirection(Vector3 out)
int
getGLEnum()
Vector3
getUp(Vector3 out)
static Cubemap.CubemapSide
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Cubemap.CubemapSide[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PositiveX
public static final Cubemap.CubemapSide PositiveX
The positive X and first side of the cubemap
-
NegativeX
public static final Cubemap.CubemapSide NegativeX
The negative X and second side of the cubemap
-
PositiveY
public static final Cubemap.CubemapSide PositiveY
The positive Y and third side of the cubemap
-
NegativeY
public static final Cubemap.CubemapSide NegativeY
The negative Y and fourth side of the cubemap
-
PositiveZ
public static final Cubemap.CubemapSide PositiveZ
The positive Z and fifth side of the cubemap
-
NegativeZ
public static final Cubemap.CubemapSide NegativeZ
The negative Z and sixth side of the cubemap
-
-
Field Detail
-
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 Vector3 up
The up vector to target the side.
-
direction
public final Vector3 direction
The direction vector to target the side.
-
-
Method Detail
-
values
public static Cubemap.CubemapSide[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Cubemap.CubemapSide c : Cubemap.CubemapSide.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Cubemap.CubemapSide valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getGLEnum
public int getGLEnum()
- Returns:
- The OpenGL target (used for glTexImage2D) of the side.
-
-