public class GLInstancedMesh 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 |
---|
GLInstancedMesh(java.lang.String name,
Mesh subject,
MaterialManager matmgr) |
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() |
int |
getDrawMode()
Get the drawing mode for this mesh
|
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 GLInstancedMesh(java.lang.String name, Mesh subject, MaterialManager matmgr)
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 int getDrawMode()
public void release()
release
in class GLInstancedRenderable