public class TLcdEarthVertexArray extends Object implements ILcdBounded
glDrawArrays()
). A vertex array contains
the following data:
glInterleavedArrays()
;glBegin()
Modifier and Type | Field and Description |
---|---|
static int |
GL_C3F_V3F |
static int |
GL_C4F_N3F_V3F |
static int |
GL_LINE_LOOP |
static int |
GL_LINE_STRIP |
static int |
GL_LINES |
static int |
GL_N3F_V3F |
static int |
GL_POINTS |
static int |
GL_POLYGON |
static int |
GL_QUAD_STRIP |
static int |
GL_QUADS |
static int |
GL_T2F_C3F_V3F |
static int |
GL_T2F_C4F_N3F_V3F |
static int |
GL_T2F_N3F_V3F |
static int |
GL_T2F_V3F |
static int |
GL_T4F_C4F_N3F_V4F |
static int |
GL_T4F_V4F |
static int |
GL_TRIANGLE_FAN |
static int |
GL_TRIANGLE_STRIP |
static int |
GL_TRIANGLES |
static int |
GL_V2F |
static int |
GL_V3F |
Constructor and Description |
---|
TLcdEarthVertexArray()
Constructs an empty
TLcdEarthVertexArray . |
TLcdEarthVertexArray(TLcdEarthVertexArray aVertexArray)
Constructs a
TLcdEarthVertexArray with the same properties as the specified
vertex array. |
Modifier and Type | Method and Description |
---|---|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getCoordinateOrigin() |
int |
getPrimitiveType() |
int |
getVertexFormat() |
FloatBuffer |
getVertices() |
void |
setBounds(ILcdBounds aBounds) |
void |
setCoordinateOrigin(ILcdPoint aCoordinateOrigin) |
void |
setPrimitiveType(int aPrimitiveType) |
void |
setVertexFormat(int aVertexFormat) |
void |
setVertices(FloatBuffer aVertices) |
public static final int GL_POINTS
public static final int GL_LINES
public static final int GL_LINE_LOOP
public static final int GL_LINE_STRIP
public static final int GL_TRIANGLES
public static final int GL_TRIANGLE_STRIP
public static final int GL_TRIANGLE_FAN
public static final int GL_QUADS
public static final int GL_QUAD_STRIP
public static final int GL_POLYGON
public static final int GL_V2F
public static final int GL_V3F
public static final int GL_C3F_V3F
public static final int GL_N3F_V3F
public static final int GL_C4F_N3F_V3F
public static final int GL_T2F_V3F
public static final int GL_T4F_V4F
public static final int GL_T2F_C3F_V3F
public static final int GL_T2F_N3F_V3F
public static final int GL_T2F_C4F_N3F_V3F
public static final int GL_T4F_C4F_N3F_V4F
public TLcdEarthVertexArray()
TLcdEarthVertexArray
.public TLcdEarthVertexArray(TLcdEarthVertexArray aVertexArray)
TLcdEarthVertexArray
with the same properties as the specified
vertex array. Note that no actual data is copied. For example writing to the vertices buffer
will also affect the specified vertex array.aVertexArray
- a vertex arraypublic FloatBuffer getVertices()
public void setVertices(FloatBuffer aVertices)
public int getVertexFormat()
public void setVertexFormat(int aVertexFormat)
aVertexFormat
- the OpenGL interleaved vertex format or -1
if it is custompublic int getPrimitiveType()
public void setPrimitiveType(int aPrimitiveType)
public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public void setBounds(ILcdBounds aBounds)
public ILcdPoint getCoordinateOrigin()
public void setCoordinateOrigin(ILcdPoint aCoordinateOrigin)