com.threerings.opengl.renderer.config
Enum TextureConfig.Format

java.lang.Object
  extended by java.lang.Enum<TextureConfig.Format>
      extended by com.threerings.opengl.renderer.config.TextureConfig.Format
All Implemented Interfaces:
Serializable, Comparable<TextureConfig.Format>
Enclosing class:
TextureConfig

public static enum TextureConfig.Format
extends Enum<TextureConfig.Format>

Format constants.


Enum Constant Summary
ALPHA
           
COMPRESSED_ALPHA
           
COMPRESSED_DEFAULT
           
COMPRESSED_INTENSITY
           
COMPRESSED_LUMINANCE
           
COMPRESSED_LUMINANCE_ALPHA
           
COMPRESSED_RGB
           
COMPRESSED_RGBA
           
DEFAULT
           
DEPTH_COMPONENT
           
INTENSITY
           
LUMINANCE
           
LUMINANCE_ALPHA
           
RGB
           
RGBA
           
 
Method Summary
 int getConstant(BufferedImage image)
          Returns the OpenGL constant associated with this format.
 boolean isSupported(boolean fallback)
           
static TextureConfig.Format valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TextureConfig.Format[] 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

DEFAULT

public static final TextureConfig.Format DEFAULT

COMPRESSED_DEFAULT

public static final TextureConfig.Format COMPRESSED_DEFAULT

ALPHA

public static final TextureConfig.Format ALPHA

COMPRESSED_ALPHA

public static final TextureConfig.Format COMPRESSED_ALPHA

LUMINANCE

public static final TextureConfig.Format LUMINANCE

COMPRESSED_LUMINANCE

public static final TextureConfig.Format COMPRESSED_LUMINANCE

LUMINANCE_ALPHA

public static final TextureConfig.Format LUMINANCE_ALPHA

COMPRESSED_LUMINANCE_ALPHA

public static final TextureConfig.Format COMPRESSED_LUMINANCE_ALPHA

INTENSITY

public static final TextureConfig.Format INTENSITY

COMPRESSED_INTENSITY

public static final TextureConfig.Format COMPRESSED_INTENSITY

RGB

public static final TextureConfig.Format RGB

COMPRESSED_RGB

public static final TextureConfig.Format COMPRESSED_RGB

RGBA

public static final TextureConfig.Format RGBA

COMPRESSED_RGBA

public static final TextureConfig.Format COMPRESSED_RGBA

DEPTH_COMPONENT

public static final TextureConfig.Format DEPTH_COMPONENT
Method Detail

values

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

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

valueOf

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

getConstant

public int getConstant(BufferedImage image)
Returns the OpenGL constant associated with this format.

Parameters:
image - the image used to guess the format if necessary.

isSupported

public boolean isSupported(boolean fallback)


Copyright © 2011. All Rights Reserved.