Package gov.nasa.worldwind.draw
Class BasicDrawableTerrain
- java.lang.Object
-
- gov.nasa.worldwind.draw.BasicDrawableTerrain
-
- All Implemented Interfaces:
Drawable
,DrawableTerrain
public class BasicDrawableTerrain extends java.lang.Object implements DrawableTerrain
-
-
Field Summary
Fields Modifier and Type Field Description BufferObject
elements
Range
lineElementRange
Sector
sector
Range
triStripElementRange
Vec3
vertexOrigin
BufferObject
vertexPoints
BufferObject
vertexTexCoords
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(DrawContext dc)
boolean
drawLines(DrawContext dc)
boolean
drawTriangles(DrawContext dc)
Sector
getSector()
Vec3
getVertexOrigin()
static BasicDrawableTerrain
obtain(Pool<BasicDrawableTerrain> pool)
void
recycle()
boolean
useVertexPointAttrib(DrawContext dc, int attribLocation)
boolean
useVertexTexCoordAttrib(DrawContext dc, int attribLocation)
-
-
-
Field Detail
-
sector
public final Sector sector
-
vertexOrigin
public final Vec3 vertexOrigin
-
lineElementRange
public final Range lineElementRange
-
triStripElementRange
public final Range triStripElementRange
-
vertexPoints
public BufferObject vertexPoints
-
vertexTexCoords
public BufferObject vertexTexCoords
-
elements
public BufferObject elements
-
-
Method Detail
-
obtain
public static BasicDrawableTerrain obtain(Pool<BasicDrawableTerrain> pool)
-
getSector
public Sector getSector()
- Specified by:
getSector
in interfaceDrawableTerrain
-
getVertexOrigin
public Vec3 getVertexOrigin()
- Specified by:
getVertexOrigin
in interfaceDrawableTerrain
-
useVertexPointAttrib
public boolean useVertexPointAttrib(DrawContext dc, int attribLocation)
- Specified by:
useVertexPointAttrib
in interfaceDrawableTerrain
-
useVertexTexCoordAttrib
public boolean useVertexTexCoordAttrib(DrawContext dc, int attribLocation)
- Specified by:
useVertexTexCoordAttrib
in interfaceDrawableTerrain
-
drawLines
public boolean drawLines(DrawContext dc)
- Specified by:
drawLines
in interfaceDrawableTerrain
-
drawTriangles
public boolean drawTriangles(DrawContext dc)
- Specified by:
drawTriangles
in interfaceDrawableTerrain
-
draw
public void draw(DrawContext dc)
-
-