Enum Constant and Description |
---|
LINE_LOOP
Draws a connected group of line segments from the first vertex to
the last, then back to the first.
|
LINE_STRIP
Draws a connected group of line segments from the first vertex to the last.
|
LINES
Treats each pair of vertices as an independent line segment.
|
POINTS
Treats each vertex as a single point.
|
TRIANGLE_FAN
Draws a connected group of triangles.
|
TRIANGLE_STRIP
Draws a connected group of triangles.
|
TRIANGLES
Treats each triplet of vertices as an independent triangle.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the enum's numerical value.
|
static BeginMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BeginMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeginMode POINTS
public static final BeginMode LINES
public static final BeginMode LINE_LOOP
public static final BeginMode LINE_STRIP
public static final BeginMode TRIANGLES
public static final BeginMode TRIANGLE_STRIP
public static final BeginMode TRIANGLE_FAN
public static BeginMode[] values()
for (BeginMode c : BeginMode.values()) System.out.println(c);
public static BeginMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null