public static class ModelCache.TightMeshPool extends 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
Mesh es 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.MeshPool
Mesh
es using the the ModelCache.MeshPool.obtain(VertexAttributes, int, int)
method.flush
in interface ModelCache.MeshPool
public Mesh obtain(VertexAttributes vertexAttributes, int vertexCount, int indexCount)
ModelCache.MeshPool
Mesh
that meets the specified criteria.obtain
in interface ModelCache.MeshPool
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 storepublic void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2017. All rights reserved.