com.badlogic.gdx.graphics
Enum Cubemap.CubemapSide

java.lang.Object
  extended by java.lang.Enum<Cubemap.CubemapSide>
      extended by com.badlogic.gdx.graphics.Cubemap.CubemapSide
All Implemented Interfaces:
Serializable, Comparable<Cubemap.CubemapSide>
Enclosing class:
Cubemap

public static enum Cubemap.CubemapSide
extends Enum<Cubemap.CubemapSide>

Enum to identify each side of a Cubemap


Enum Constant Summary
NegativeX
          The negative X and second side of the cubemap
NegativeY
          The negative Y and fourth side of the cubemap
NegativeZ
          The negative Z and sixth side of the cubemap
PositiveX
          The positive X and first side of the cubemap
PositiveY
          The positive Y and third side of the cubemap
PositiveZ
          The positive Z and fifth side of the cubemap
 
Field Summary
 int glEnum
          The OpenGL target (used for glTexImage2D) of the side.
 int index
          The zero based index of the side in the cubemap
 
Method Summary
 int getGLEnum()
           
static Cubemap.CubemapSide valueOf(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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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.

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(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:
IllegalArgumentException - if this enum type 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.


Copyright © 2013. All Rights Reserved.