Interface ModelCache.MeshPool

    • Method Detail

      • obtain

        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.
        Parameters:
        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
        Returns:
        the obtained Mesh, or null when no mesh could be obtained.