public static class ModelCache.TightMeshPool extends java.lang.Object implements ModelCache.MeshPool
ModelCache.MeshPool implementation, which is typically used for static meshes (create once, use many).| Constructor and Description |
|---|
TightMeshPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases all resources of this object.
|
void |
flush()
Releases all previously obtained
Meshes using the the ModelCache.MeshPool.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. |
public void flush()
ModelCache.MeshPoolMeshes using the the ModelCache.MeshPool.obtain(VertexAttributes, int, int) method.flush in interface ModelCache.MeshPoolpublic Mesh obtain(VertexAttributes vertexAttributes, int vertexCount, int indexCount)
ModelCache.MeshPoolMesh that meets the specified criteria.obtain in interface ModelCache.MeshPoolvertexAttributes - 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 storepublic void dispose()
Disposabledispose in interface Disposable