Package com.jme3.texture
Enum Class Image.Format
- All Implemented Interfaces:
Serializable
,Comparable<Image.Format>
,Constable
- Enclosing class:
- Image
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription8-bit alpha, blue, green, and red.8-bit alpha8-bit alpha, red, blue and greenBPTC compression BC6 signed float RGBBPTC compression BC6 unsigned float RGBBPTC compression BC7 RGBABPTC compression BC7 SRGB Alpha8-bit blue, green, and red.8-bit blue, green, red and alpha.Arbitrary depth format.16-bit depth.24-bit depth.24-bit depth with 8-bit stencil.32-bit depth.single-precision floating point depth.S3TC compression DXT1.S3TC compression DXT1 with 1-bit alpha.S3TC compression DXT3 with 4-bit alpha.S3TC compression DXT5 with interpolated 8-bit alpha.Ericsson Texture Compression.Ericsson Texture Compression 2.Ericsson Texture Compression 2.half-precision floating-point grayscale/luminance.half-precision floating-point grayscale/luminance and alpha.single-precision floating-point grayscale/luminance.8-bit grayscale/luminance.8-bit luminance/grayscale and 8-bit alpha.half-precision floating point red.16-bit signed int red.16-bit unsigned int red.single-precision floating point red.32-bit signed int red.32-bit unsigned int red.8-bit signed int red.8-bit unsigned int red.Deprecated.Deprecated.Not supported by OpenGL 3.0.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.half-precision floating point red and green.16-bit signed int red and green.16-bit unsigned int red and green.single-precision floating point red and green.32-bit signed int red and green.32-bit unsigned int red and green.8-bit signed int red and green.8-bit unsigned int red and green.10-bit red, green, and blue with 2-bit alpha.unsigned floating-point red, green and blue that uses 32 bits.half-precision floating point red, green, and blue.Texture data is stored asRGB16F
in system memory, but will be converted toRGB111110F
when sent to the video hardware.16-bit signed int red, green and blue.16-bit unsigned int red, green and blue.single-precision floating point red, green, and blue.32-bit signed int red, green and blue.32-bit unsigned int red, green and blue.5-bit red, 6-bit green, and 5-bit blue.5-bit red, green, and blue with 1-bit alpha.8-bit red, green, and blue.8-bit signed int red, green and blue.8 bit unsigned int red, green and blue.9-bit red, green and blue with 5-bit exponent.half-precision floating point red, green, blue, and alpha.16-bit signed int red, green, blue and alpha.16-bit unsigned int red, green, blue and alpha.single-precision floating point red, green, blue and alpha.32-bit signed int red, green, blue and alpha.32-bit unsigned int red, green, blue and alpha.8-bit red, green, blue, and alpha.8-bit signed int red, green, blue and alpha.8-bit unsigned int red, green, blue and alpha. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
static Image.Format
Returns the enum constant of this class with the specified name.static Image.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Alpha8
8-bit alpha -
Reserved1
Deprecated. -
Luminance8
8-bit grayscale/luminance. -
Reserved2
Deprecated. -
Luminance16F
half-precision floating-point grayscale/luminance. RequiresCaps.FloatTexture
. -
Luminance32F
single-precision floating-point grayscale/luminance. RequiresCaps.FloatTexture
. -
Luminance8Alpha8
8-bit luminance/grayscale and 8-bit alpha. -
Reserved3
Deprecated. -
Luminance16FAlpha16F
half-precision floating-point grayscale/luminance and alpha. RequiresCaps.FloatTexture
. -
Reserved4
Deprecated. -
Reserved5
Deprecated. -
BGR8
8-bit blue, green, and red. -
RGB8
8-bit red, green, and blue. -
Reserved6
Deprecated. -
Reserved7
Deprecated. -
RGB565
5-bit red, 6-bit green, and 5-bit blue. -
Reserved8
Deprecated. -
RGB5A1
5-bit red, green, and blue with 1-bit alpha. -
RGBA8
8-bit red, green, blue, and alpha. -
ABGR8
8-bit alpha, blue, green, and red. -
ARGB8
8-bit alpha, red, blue and green -
BGRA8
8-bit blue, green, red and alpha. -
Reserved9
Deprecated. -
DXT1
S3TC compression DXT1. -
DXT1A
S3TC compression DXT1 with 1-bit alpha. -
DXT3
S3TC compression DXT3 with 4-bit alpha. -
DXT5
S3TC compression DXT5 with interpolated 8-bit alpha. -
RGTC2
-
SIGNED_RGTC2
-
RGTC1
-
SIGNED_RGTC1
-
BC6H_SF16
BPTC compression BC6 signed float RGB -
BC6H_UF16
BPTC compression BC6 unsigned float RGB -
BC7_UNORM
BPTC compression BC7 RGBA -
BC7_UNORM_SRGB
BPTC compression BC7 SRGB Alpha -
Reserved10
Deprecated.Not supported by OpenGL 3.0.Luminance-Alpha Texture Compression. -
Depth
Arbitrary depth format. The precision is chosen by the video hardware. -
Depth16
16-bit depth. -
Depth24
24-bit depth. -
Depth32
32-bit depth. -
Depth32F
single-precision floating point depth. RequiresCaps.FloatDepthBuffer
. -
RGB16F_to_RGB111110F
Texture data is stored asRGB16F
in system memory, but will be converted toRGB111110F
when sent to the video hardware. RequiresCaps.FloatTexture
andCaps.PackedFloatTexture
. -
RGB111110F
unsigned floating-point red, green and blue that uses 32 bits. RequiresCaps.PackedFloatTexture
. -
RGB16F_to_RGB9E5
Texture data is stored asRGB16F
in system memory, but will be converted toRGB9E5
when sent to the video hardware. RequiresCaps.FloatTexture
andCaps.SharedExponentTexture
. -
RGB9E5
9-bit red, green and blue with 5-bit exponent. RequiresCaps.SharedExponentTexture
. -
RGB16F
half-precision floating point red, green, and blue. RequiresCaps.FloatTexture
. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGBA16F
half-precision floating point red, green, blue, and alpha. RequiresCaps.FloatTexture
. -
RGB32F
single-precision floating point red, green, and blue. RequiresCaps.FloatTexture
. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGBA32F
single-precision floating point red, green, blue and alpha. RequiresCaps.FloatTexture
. -
Reserved11
Deprecated. -
Depth24Stencil8
24-bit depth with 8-bit stencil. Check the capCaps.PackedDepthStencilBuffer
. -
Reserved12
Deprecated. -
ETC1
Ericsson Texture Compression. Typically used on Android. RequiresCaps.TextureCompressionETC1
. -
ETC2
Ericsson Texture Compression 2. Typically used on Android. Same asETC1
but with alpha. RequiresCaps.TextureCompressionETC2
. -
ETC2_ALPHA1
Ericsson Texture Compression 2. Typically used on Android. Same asETC2
but alpha can be either 1 or 0. RequiresCaps.TextureCompressionETC2
. -
R8I
8-bit signed int red. RequiresCaps.IntegerTexture
. -
R8UI
8-bit unsigned int red. RequiresCaps.IntegerTexture
. -
R16I
16-bit signed int red. RequiresCaps.IntegerTexture
. -
R16UI
16-bit unsigned int red. RequiresCaps.IntegerTexture
. -
R32I
32-bit signed int red. RequiresCaps.IntegerTexture
. -
R32UI
32-bit unsigned int red. RequiresCaps.IntegerTexture
. -
RG8I
8-bit signed int red and green. RequiresCaps.IntegerTexture
. -
RG8UI
8-bit unsigned int red and green. RequiresCaps.IntegerTexture
. -
RG16I
16-bit signed int red and green. RequiresCaps.IntegerTexture
. -
RG16UI
16-bit unsigned int red and green. RequiresCaps.IntegerTexture
. -
RG32I
32-bit signed int red and green. RequiresCaps.IntegerTexture
. -
RG32UI
32-bit unsigned int red and green. RequiresCaps.IntegerTexture
. -
RGB8I
8-bit signed int red, green and blue. RequiresCaps.IntegerTexture
to be supported for textures. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGB8UI
8 bit unsigned int red, green and blue. RequiresCaps.IntegerTexture
to be supported for textures. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGB16I
16-bit signed int red, green and blue. RequiresCaps.IntegerTexture
to be supported for textures. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGB16UI
16-bit unsigned int red, green and blue. RequiresCaps.IntegerTexture
to be supported for textures. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGB32I
32-bit signed int red, green and blue. RequiresCaps.IntegerTexture
to be supported for textures. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGB32UI
32-bit unsigned int red, green and blue. RequiresCaps.IntegerTexture
to be supported for textures. May be supported for renderbuffers, but the OpenGL specification does not require it. -
RGBA8I
8-bit signed int red, green, blue and alpha. RequiresCaps.IntegerTexture
. -
RGBA8UI
8-bit unsigned int red, green, blue and alpha. RequiresCaps.IntegerTexture
. -
RGBA16I
16-bit signed int red, green, blue and alpha. RequiresCaps.IntegerTexture
. -
RGBA16UI
16-bit unsigned int red, green, blue and alpha. RequiresCaps.IntegerTexture
. -
RGBA32I
32-bit signed int red, green, blue and alpha. RequiresCaps.IntegerTexture
. -
RGBA32UI
32-bit unsigned int red, green, blue and alpha. RequiresCaps.IntegerTexture
. -
R16F
half-precision floating point red. RequiresCaps.FloatTexture
. -
R32F
single-precision floating point red. RequiresCaps.FloatTexture
. -
RG16F
half-precision floating point red and green. RequiresCaps.FloatTexture
. -
RG32F
single-precision floating point red and green. RequiresCaps.FloatTexture
. -
RGB10A2
10-bit red, green, and blue with 2-bit alpha.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBitsPerPixel
public int getBitsPerPixel()- Returns:
- bits per pixel.
-
isDepthFormat
public boolean isDepthFormat()- Returns:
- True if this format is a depth format, false otherwise.
-
isCompressed
public boolean isCompressed()- Returns:
- True if this is a compressed image format, false if uncompressed.
-
isFloatingPont
public boolean isFloatingPont()- Returns:
- True if this image format is in floating point, false if it is an integer format.
-