- java.lang.Object
-
- java.lang.Enum<ShadowType>
-
- be.yildizgames.module.graphic.ShadowType
-
- All Implemented Interfaces:
Serializable,Comparable<ShadowType>
public enum ShadowType extends Enum<ShadowType>
Possible type of shadows.- Author:
- Grégory Van den Borre
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONENo shadows.STENCIL_ADDITIVEStencil additive shadows.STENCIL_MODULATIVEStencil modulative shadows.TEXTURE_ADDITIVETexture additive shadows.TEXTURE_MODULATIVETexture modulative shadows.
-
Field Summary
Fields Modifier and Type Field Description intvalueAssociated value to avoid to depend on the natural order.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShadowTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ShadowType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ShadowType NONE
No shadows.
-
TEXTURE_ADDITIVE
public static final ShadowType TEXTURE_ADDITIVE
Texture additive shadows.
-
TEXTURE_MODULATIVE
public static final ShadowType TEXTURE_MODULATIVE
Texture modulative shadows.
-
STENCIL_ADDITIVE
public static final ShadowType STENCIL_ADDITIVE
Stencil additive shadows.
-
STENCIL_MODULATIVE
public static final ShadowType STENCIL_MODULATIVE
Stencil modulative shadows.
-
-
Method Detail
-
values
public static ShadowType[] 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 (ShadowType c : ShadowType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShadowType 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 nameNullPointerException- if the argument is null
-
-