public class GLInstancedPolyline extends GLInstancedRenderable
_drawInstances, _drawVersion, _instanceLimit, _lcs, _mxBuffer, _mxBufferID, _mxBufferPtr, _mxBufferSize, _name, _pendingInstances, _released, _renderPass, _vao, SIZE_BUF, SIZE_MAT4, SIZE_VEC2, SIZE_VEC3, SIZE_VEC4
Constructor and Description |
---|
GLInstancedPolyline(java.lang.String name,
java.util.List<android.graphics.PointF> points) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
compileShader()
Compile the main program shader
|
protected void |
drawInstanced(GLMapView view)
Perform instanced draw calls here
At this point the matrices have been set up
|
protected void |
expandInstanceBuffers() |
protected int |
getPositionPointer()
Get the layout index of the location pointer (the matrix used to position the renderable)
|
void |
release() |
protected void |
setupVertexBuffers()
Setup vertex buffers
|
protected void |
updateMatrices(GLMapView view) |
addInstance, compileShader, createFloatBuffer, deleteBuffers, deleteBuffers, draw, flagRelease, getNumInstances, getRenderPass, reset, setupInstanceBuffer, setupInstancePointer
public GLInstancedPolyline(java.lang.String name, java.util.List<android.graphics.PointF> points)
protected java.lang.Integer compileShader()
compileShader
in class GLInstancedRenderable
protected int getPositionPointer()
GLInstancedRenderable
getPositionPointer
in class GLInstancedRenderable
protected void setupVertexBuffers()
GLInstancedRenderable
setupVertexBuffers
in class GLInstancedRenderable
protected void expandInstanceBuffers()
expandInstanceBuffers
in class GLInstancedRenderable
protected void updateMatrices(GLMapView view)
updateMatrices
in class GLInstancedRenderable
protected void drawInstanced(GLMapView view)
GLInstancedRenderable
drawInstanced
in class GLInstancedRenderable
view
- Map viewpublic void release()
release
in class GLInstancedRenderable