Enum Constants.ShapeMode
- java.lang.Object
-
- java.lang.Enum<Constants.ShapeMode>
-
- org.praxislive.video.pgl.code.userapi.Constants.ShapeMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Constants.ShapeMode>
- Enclosing class:
- Constants
public static enum Constants.ShapeMode extends Enum<Constants.ShapeMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Lines
Points
Quads
QuadStrip
TriangleFan
Triangles
TriangleStrip
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
unwrap()
static Constants.ShapeMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Constants.ShapeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Points
public static final Constants.ShapeMode Points
-
Lines
public static final Constants.ShapeMode Lines
-
Triangles
public static final Constants.ShapeMode Triangles
-
TriangleFan
public static final Constants.ShapeMode TriangleFan
-
TriangleStrip
public static final Constants.ShapeMode TriangleStrip
-
Quads
public static final Constants.ShapeMode Quads
-
QuadStrip
public static final Constants.ShapeMode QuadStrip
-
-
Method Detail
-
values
public static Constants.ShapeMode[] 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 (Constants.ShapeMode c : Constants.ShapeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.ShapeMode 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
-
unwrap
public int unwrap()
-
-