Class MeshPool

java.lang.Object
dev.engine_room.flywheel.backend.engine.MeshPool

public class MeshPool extends Object
  • Constructor Details

    • MeshPool

      public MeshPool()
      Create a new mesh pool.
  • Method Details

    • alloc

      public MeshPool.PooledMesh alloc(Mesh mesh)
      Allocate a model in the arena.
      Parameters:
      mesh - The model to allocate.
      Returns:
      A handle to the allocated model.
    • get

      @Nullable public MeshPool.PooledMesh get(Mesh mesh)
    • flush

      public void flush()
    • bind

      public void bind(GlVertexArray vertexArray)
    • delete

      public void delete()