com.triangularpixels.rebirth.image
Enum TextureFormat

java.lang.Object
  extended by java.lang.Enum<TextureFormat>
      extended by com.triangularpixels.rebirth.image.TextureFormat
All Implemented Interfaces:
Serializable, Comparable<TextureFormat>

public enum TextureFormat
extends Enum<TextureFormat>


Enum Constant Summary
RGB
           
RGBA
           
 
Method Summary
 int bytesPerPixel()
           
 int glValue()
           
static TextureFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TextureFormat[] 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

RGB

public static final TextureFormat RGB

RGBA

public static final TextureFormat RGBA
Method Detail

values

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

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

valueOf

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

glValue

public int glValue()

bytesPerPixel

public int bytesPerPixel()


Copyright © 2009 TriangularPixels.com. All Rights Reserved.