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|
Will try to reuse or, when not possible to reuse, optionally create a
Mesh obtain(VertexAttributes vertexAttributes, int vertexCount, int indexCount)
Meshthat meets the specified criteria.
vertexAttributes- the vertex attributes of the mesh to obtain
vertexCount- the minimum amount vertices the mesh should be able to store
indexCount- the minimum amount of indices the mesh should be able to store