de.matthiasmann.twl.renderer.lwjgl
Enum LWJGLTexture.Format

java.lang.Object
  extended by java.lang.Enum<LWJGLTexture.Format>
      extended by de.matthiasmann.twl.renderer.lwjgl.LWJGLTexture.Format
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LWJGLTexture.Format>
Enclosing class:
LWJGLTexture

public static enum LWJGLTexture.Format
extends java.lang.Enum<LWJGLTexture.Format>


Enum Constant Summary
ABGR
           
ALPHA
           
BGRA
           
COLOR
           
LUMINANCE
           
LUMINANCE_ALPHA
           
RGB
           
RGB_SMALL
           
RGBA
           
 
Method Summary
 int getPixelSize()
           
 PNGDecoder.Format getPngFormat()
           
static LWJGLTexture.Format valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LWJGLTexture.Format[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALPHA

public static final LWJGLTexture.Format ALPHA

LUMINANCE

public static final LWJGLTexture.Format LUMINANCE

LUMINANCE_ALPHA

public static final LWJGLTexture.Format LUMINANCE_ALPHA

RGB

public static final LWJGLTexture.Format RGB

RGB_SMALL

public static final LWJGLTexture.Format RGB_SMALL

RGBA

public static final LWJGLTexture.Format RGBA

BGRA

public static final LWJGLTexture.Format BGRA

ABGR

public static final LWJGLTexture.Format ABGR

COLOR

public static final LWJGLTexture.Format COLOR
Method Detail

values

public static final LWJGLTexture.Format[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(LWJGLTexture.Format c : LWJGLTexture.Format.values())
        System.out.println(c);

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

valueOf

public static LWJGLTexture.Format 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 name

getPixelSize

public int getPixelSize()

getPngFormat

public PNGDecoder.Format getPngFormat()