public class TLspPrimitiveType extends Object
POINTS
, then all the
vertices
in that vertex array would be rendered as points. If the primitive type were TRIANGLES
however, then every three consecutive vertices in the vertex array would be drawn as a triangle.Modifier and Type | Field and Description |
---|---|
static TLspPrimitiveType |
LINE_LOOP
The same as line strip, except that the final and first vertex are also
connected by a line segment.
|
static TLspPrimitiveType |
LINE_STRIP
A connected line.
|
static TLspPrimitiveType |
LINES
A series of unconnected line segments.
|
static TLspPrimitiveType |
POINTS
One point at each vertex.
|
static TLspPrimitiveType |
POLYGON
An arbitrary polygon.
|
static TLspPrimitiveType |
QUAD_STRIP
A series of connected quadrilaterals.
|
static TLspPrimitiveType |
QUADS
A series of quadrilaterals (four-sided polygons).
|
static TLspPrimitiveType |
TRIANGLE_FAN
The same as triangle strip except that the first vertex is shared by each triangle.
|
static TLspPrimitiveType |
TRIANGLE_STRIP
A series of connected triangles.
|
static TLspPrimitiveType |
TRIANGLES
A series of triangles.
|
Modifier and Type | Method and Description |
---|---|
TLcd3DPrimitiveType |
get3DPrimitiveType()
Returns the
TLcd3DPrimitiveType that corresponds to this type. |
int |
getGLEnumerant()
Returns the OpenGL enumerant corresponding to this primitive type.
|
static TLspPrimitiveType |
getPrimitiveType(int aGLConstant)
Returns the primitive type corresponding to the given OpenGL enumerant.
|
String |
toString()
Returns a
String containing the textual representation of this primitive type. |
public static final TLspPrimitiveType POINTS
public static final TLspPrimitiveType LINES
public static final TLspPrimitiveType LINE_STRIP
public static final TLspPrimitiveType LINE_LOOP
public static final TLspPrimitiveType TRIANGLES
public static final TLspPrimitiveType TRIANGLE_STRIP
public static final TLspPrimitiveType TRIANGLE_FAN
public static final TLspPrimitiveType QUADS
public static final TLspPrimitiveType QUAD_STRIP
public static final TLspPrimitiveType POLYGON
public static TLspPrimitiveType getPrimitiveType(int aGLConstant)
aGLConstant
- the OpenGL enumerant for which the primitive type is to be retrievedIllegalArgumentException
- when the given OpenGL enumerant has no corresponding primitive
typepublic int getGLEnumerant()
public TLcd3DPrimitiveType get3DPrimitiveType()
TLcd3DPrimitiveType
that corresponds to this type.