org.jagatoo.opengl.enums
Enum TextureImageInternalFormat

java.lang.Object
  extended by java.lang.Enum<TextureImageInternalFormat>
      extended by org.jagatoo.opengl.enums.TextureImageInternalFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextureImageInternalFormat>

public enum TextureImageInternalFormat
extends java.lang.Enum<TextureImageInternalFormat>

Insert type comment here.


Enum Constant Summary
ALPHA
          Internal format hint.
ALPHA4
          Internal format hint.
ALPHA8
          Internal format hint.
DEPTH16
          Internal format hint.
DEPTH24
          Internal format hint.
DEPTH32
          Internal format hint.
INTENSITY
          Internal format hint.
INTENSITY4
          Internal format hint.
INTENSITY8
          Internal format hint.
LUM_ALPHA
          Internal format hint.
LUM4_ALPHA4
          Internal format hint.
LUM8_ALPHA8
          each pixel contains two eight bit channels, one each for luminance and alpha.
LUMINANCE
          Internal format hint.
LUMINANCE4
          Internal format hint.
LUMINANCE8
          Internal format hint.
R3_G3_B2
          Internal format hint.
RGB
          Internal format hint.
RGB_DXT1
          Internal format hint.
RGB4
          Internal format hint.
RGB5
          Internal format hint.
RGB5_A1
          Internal format hint.
RGB8
          Internal format hint.
RGBA
          Internal format hint.
RGBA_DXT1
          Internal format hint.
RGBA_DXT3
          Internal format hint.
RGBA_DXT5
          Internal format hint.
RGBA4
          Internal format hint.
RGBA8
          Internal format hint.
 
Method Summary
static TextureImageInternalFormat getFallbackInternalFormat(TextureImageFormat format)
           
 boolean hasAlpha()
           
 boolean isCompressed()
           
 int toOpenGL()
           
static TextureImageInternalFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextureImageInternalFormat[] 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

RGB

public static final TextureImageInternalFormat RGB
Internal format hint.
each pixel contains three eight bit channels, one each for red, green and blue.


RGBA

public static final TextureImageInternalFormat RGBA
Internal format hint.
each pixel contains four eight bit channels, one each for red, green, blue and alpha.


RGB8

public static final TextureImageInternalFormat RGB8
Internal format hint.
each pixel contains three eight bit channels, one each for red, green and blue.


RGBA8

public static final TextureImageInternalFormat RGBA8
Internal format hint.
each pixel contains four eight bit channels, one each for red, green, blue and alpha.


RGB5

public static final TextureImageInternalFormat RGB5
Internal format hint.
each pixel contains three five bit channels, one each for red, green and blue.


RGB5_A1

public static final TextureImageInternalFormat RGB5_A1
Internal format hint.
each pixel contains three five bit channels, one each for red, green and blue. Also a one bit channel for alpha.


RGB4

public static final TextureImageInternalFormat RGB4
Internal format hint.
each pixel contains three four bit channels, one each for red, green, blue and alpha.


RGBA4

public static final TextureImageInternalFormat RGBA4
Internal format hint.
each pixel contains four four bit channels, one each for red, green, blue and alpha.


LUM_ALPHA

public static final TextureImageInternalFormat LUM_ALPHA
Internal format hint.
each pixel contains luminance and alpha.


LUM4_ALPHA4

public static final TextureImageInternalFormat LUM4_ALPHA4
Internal format hint.
each pixel contains two four bit channels, one each for luminance and alpha.


LUM8_ALPHA8

public static final TextureImageInternalFormat LUM8_ALPHA8
each pixel contains two eight bit channels, one each for luminance and alpha.


R3_G3_B2

public static final TextureImageInternalFormat R3_G3_B2
Internal format hint.
each pixel contains two three bit channels, one each for red and green, and a two bit channel for blue.


DEPTH16

public static final TextureImageInternalFormat DEPTH16
Internal format hint.
each pixel contains 16 bit depth.


DEPTH24

public static final TextureImageInternalFormat DEPTH24
Internal format hint.
each pixel contains 24 bit depth.


DEPTH32

public static final TextureImageInternalFormat DEPTH32
Internal format hint.
each pixel contains 32 bit depth.


LUMINANCE

public static final TextureImageInternalFormat LUMINANCE
Internal format hint.
each pixel contains only luminance.


LUMINANCE4

public static final TextureImageInternalFormat LUMINANCE4
Internal format hint.
each pixel contains 4 bit luminance.


LUMINANCE8

public static final TextureImageInternalFormat LUMINANCE8
Internal format hint.
each pixel contains 8 bit luminance.


INTENSITY

public static final TextureImageInternalFormat INTENSITY
Internal format hint.
each pixel contains only intensity.


INTENSITY4

public static final TextureImageInternalFormat INTENSITY4
Internal format hint.
each pixel contains 4 bit intensity.


INTENSITY8

public static final TextureImageInternalFormat INTENSITY8
Internal format hint.
each pixel contains 8 bit intensity.


ALPHA

public static final TextureImageInternalFormat ALPHA
Internal format hint.
each pixel contains only alpha.


ALPHA4

public static final TextureImageInternalFormat ALPHA4
Internal format hint.
each pixel contains 4 bit alpha.


ALPHA8

public static final TextureImageInternalFormat ALPHA8
Internal format hint.
each pixel contains 8 bit alpha.


RGB_DXT1

public static final TextureImageInternalFormat RGB_DXT1
Internal format hint.
compressed texture format. Uses S3TC_DXT1 compression.


RGBA_DXT1

public static final TextureImageInternalFormat RGBA_DXT1
Internal format hint.
compressed texture format. Uses S3TC_DXT1 compression.


RGBA_DXT3

public static final TextureImageInternalFormat RGBA_DXT3
Internal format hint.
compressed texture format. Uses S3TC_DXT3 compression.


RGBA_DXT5

public static final TextureImageInternalFormat RGBA_DXT5
Internal format hint.
compressed texture format. Uses S3TC_DXT5 compression.

Method Detail

values

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

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

valueOf

public static TextureImageInternalFormat 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
java.lang.NullPointerException - if the argument is null

hasAlpha

public final boolean hasAlpha()

isCompressed

public final boolean isCompressed()

toOpenGL

public final int toOpenGL()

getFallbackInternalFormat

public static final TextureImageInternalFormat getFallbackInternalFormat(TextureImageFormat format)