public enum TextureFormat extends Enum<TextureFormat> implements IEnumWithValue
| Enum Constant and Description |
|---|
ALPHA
Discards the red, green and blue components and reads the alpha component.
|
LUMINANCE
Each color component is a luminance component, alpha is 1.0.
|
LUMINANCE_ALPHA
Each component is a luminance/alpha component.
|
RED
WebGL 2 only
|
RED_INTEGER
WebGL 2 only
|
RG
WebGL 2 only
|
RG_INTEGER
WebGL 2 only
|
RGB
Discards the alpha components and reads the red, green and blue components.
|
RGBA
Red, green, blue and alpha components are read from the color buffer.
|
RGBA_INTEGER
WebGL 2 only
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
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 are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOffromValue, transformForClientpublic static final TextureFormat ALPHA
public static final TextureFormat LUMINANCE
public static final TextureFormat LUMINANCE_ALPHA
public static final TextureFormat RED
public static final TextureFormat RED_INTEGER
public static final TextureFormat RG
public static final TextureFormat RG_INTEGER
public static final TextureFormat RGB
public static final TextureFormat RGBA
public static final TextureFormat RGBA_INTEGER
public static TextureFormat[] values()
for (TextureFormat c : TextureFormat.values()) System.out.println(c);
public static TextureFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int value()
value in interface IEnumWithValueCopyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.