com.neovisionaries.android.opengl
Enum RenderBufferFormat

java.lang.Object
  extended by java.lang.Enum<RenderBufferFormat>
      extended by com.neovisionaries.android.opengl.RenderBufferFormat
All Implemented Interfaces:
Serializable, Comparable<RenderBufferFormat>

public enum RenderBufferFormat
extends Enum<RenderBufferFormat>

Format of render buffer.

Author:
Takahiko Kawasaki
See Also:
RenderBuffer.setFormat(RenderBufferFormat, int, int)

Enum Constant Summary
DEPTH_COMPONENT16
          GL_DEPTH_COMPONENT16.
RGB5_A1
          GL_RGB5_A1.
RGB565
          GL_RGB565.
RGBA4
          GL_RGBA4.
STENCIL_INDEX8
          GL_STENCIL_INDEX8.
 
Method Summary
 int getFormat()
          Get the integer representing this format.
static RenderBufferFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RenderBufferFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RGB565

public static final RenderBufferFormat RGB565
GL_RGB565.


RGBA4

public static final RenderBufferFormat RGBA4
GL_RGBA4.


RGB5_A1

public static final RenderBufferFormat RGB5_A1
GL_RGB5_A1.


DEPTH_COMPONENT16

public static final RenderBufferFormat DEPTH_COMPONENT16
GL_DEPTH_COMPONENT16.


STENCIL_INDEX8

public static final RenderBufferFormat STENCIL_INDEX8
GL_STENCIL_INDEX8.

Method Detail

values

public static RenderBufferFormat[] 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 (RenderBufferFormat c : RenderBufferFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RenderBufferFormat 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

getFormat

public int getFormat()
Get the integer representing this format.

Returns:
The integer representing this format.