|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AlphaMode>
com.threerings.opengl.effect.AlphaMode
public enum AlphaMode
The alpha mode, which determines how to convert colors to premultiplied alpha format.
| Enum Constant Summary | |
|---|---|
ADDITIVE
Multiply by alpha and set alpha to zero. |
|
OPAQUE
Multiply by alpha and set alpha to one. |
|
PREMULTIPLIED
Leave everything unchanged. |
|
TRANSLUCENT
Multiply by alpha and leave alpha unchanged. |
|
| Method Summary | |
|---|---|
abstract Color4f |
apply(Color4f color)
Applies the computed color's alpha according to this mode's rules. |
static AlphaMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AlphaMode[] |
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 |
|---|
public static final AlphaMode OPAQUE
public static final AlphaMode TRANSLUCENT
public static final AlphaMode ADDITIVE
public static final AlphaMode PREMULTIPLIED
| Method Detail |
|---|
public static AlphaMode[] values()
for (AlphaMode c : AlphaMode.values()) System.out.println(c);
public static AlphaMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract Color4f apply(Color4f color)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||