public static interface ModelCache.MeshPool extends Disposable
obtain(VertexAttributes, int, int) method to obtain a mesh which can at minimum the
specified amount of vertices and indices. Call the flush() method to flush the pool ant release all previously
obtained meshes.| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Releases all previously obtained
Meshes using the the obtain(VertexAttributes, int, int) method. |
Mesh |
obtain(VertexAttributes vertexAttributes,
int vertexCount,
int indexCount)
Will try to reuse or, when not possible to reuse, optionally create a
Mesh that meets the specified criteria. |
disposeMesh obtain(VertexAttributes vertexAttributes, int vertexCount, int indexCount)
Mesh that meets the specified criteria.vertexAttributes - the vertex attributes of the mesh to obtainvertexCount - the minimum amount vertices the mesh should be able to storeindexCount - the minimum amount of indices the mesh should be able to storevoid flush()
Meshes using the the obtain(VertexAttributes, int, int) method.