Enum Constant and Description |
---|
Hybrid
A combination of various triangle modes.
|
LineLoop
Identical to
LineStrip except that at the end
the last vertex is connected with the first to form a line. |
Lines
A primitive is a line segment.
|
LineStrip
A primitive is a line segment.
|
Patch
Used for Tessellation only.
|
Points
A primitive is a single point in space.
|
TriangleFan
Similar to
Triangles , the first 3 vertices
specify a triangle, each 2 subsequent vertices are combined
with the very first vertex to make a triangle. |
Triangles
A primitive is a triangle.
|
TriangleStrip
Similar to
Triangles , the first 3 vertices
specify a triangle, while subsequent vertices are combined with
the previous two to form a triangle. |
Modifier and Type | Method and Description |
---|---|
boolean |
isListMode()
Returns true if the specified mode is a list mode (meaning
,it specifies the indices as a linear list and not some special
format).
|
static Mesh.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mesh.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mesh.Mode Points
points
are
determined via the vertex shader's gl_PointSize
output.public static final Mesh.Mode Lines
Material.getAdditionalRenderState()
and RenderState.setLineWidth(float)
can be used
to set the width of the lines.public static final Mesh.Mode LineStrip
Material.getAdditionalRenderState()
and RenderState.setLineWidth(float)
can
be used to set the width of the lines.public static final Mesh.Mode LineLoop
LineStrip
except that at the end
the last vertex is connected with the first to form a line.
Material.getAdditionalRenderState()
and RenderState.setLineWidth(float)
can be used
to set the width of the lines.public static final Mesh.Mode Triangles
public static final Mesh.Mode TriangleStrip
Triangles
, the first 3 vertices
specify a triangle, while subsequent vertices are combined with
the previous two to form a triangle.public static final Mesh.Mode TriangleFan
Triangles
, the first 3 vertices
specify a triangle, each 2 subsequent vertices are combined
with the very first vertex to make a triangle.public static final Mesh.Mode Hybrid
mode start points
and
element lengths
must
be specified for this mode.public static final Mesh.Mode Patch
public static Mesh.Mode[] values()
for (Mesh.Mode c : Mesh.Mode.values()) System.out.println(c);
public static Mesh.Mode 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