Package gov.nasa.worldwind.terrain
Class RectangularTessellator.RenderInfo
- java.lang.Object
-
- gov.nasa.worldwind.terrain.RectangularTessellator.RenderInfo
-
- Enclosing class:
- RectangularTessellator
protected static class RectangularTessellator.RenderInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
density
protected java.nio.IntBuffer
indices
protected boolean
isVboBound
protected Vec4
referenceCenter
protected java.nio.FloatBuffer
texCoords
protected long
time
protected java.lang.Object
vboCacheKey
protected java.nio.FloatBuffer
vertices
-
Constructor Summary
Constructors Modifier Constructor Description protected
RenderInfo(DrawContext dc, int density, java.nio.FloatBuffer vertices, Vec4 refCenter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillVerticesVBO(DrawContext dc)
int
getDensity()
java.nio.IntBuffer
getIndices()
Vec4
getReferenceCenter()
protected long
getSizeInBytes()
java.nio.FloatBuffer
getTexCoords()
long
getTime()
java.lang.Object
getVboCacheKey()
java.nio.FloatBuffer
getVertices()
boolean
isVboBound()
protected void
update(DrawContext dc)
Resets this instance's update time to now and refills its VBO if VBOs should be used.
-
-
-
Field Detail
-
density
protected final int density
-
referenceCenter
protected final Vec4 referenceCenter
-
vertices
protected final java.nio.FloatBuffer vertices
-
texCoords
protected final java.nio.FloatBuffer texCoords
-
indices
protected final java.nio.IntBuffer indices
-
time
protected long time
-
vboCacheKey
protected java.lang.Object vboCacheKey
-
isVboBound
protected boolean isVboBound
-
-
Constructor Detail
-
RenderInfo
protected RenderInfo(DrawContext dc, int density, java.nio.FloatBuffer vertices, Vec4 refCenter)
-
-
Method Detail
-
getDensity
public int getDensity()
-
getReferenceCenter
public Vec4 getReferenceCenter()
-
getVertices
public java.nio.FloatBuffer getVertices()
-
getTexCoords
public java.nio.FloatBuffer getTexCoords()
-
getIndices
public java.nio.IntBuffer getIndices()
-
getTime
public long getTime()
-
getVboCacheKey
public java.lang.Object getVboCacheKey()
-
isVboBound
public boolean isVboBound()
-
update
protected void update(DrawContext dc)
Resets this instance's update time to now and refills its VBO if VBOs should be used.- Parameters:
dc
- the current draw context.
-
getSizeInBytes
protected long getSizeInBytes()
-
fillVerticesVBO
protected void fillVerticesVBO(DrawContext dc)
-
-