Class ModelPool
java.lang.Object
com.jozufozu.flywheel.backend.model.ModelPool
- All Implemented Interfaces:
ModelAllocator
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.jozufozu.flywheel.backend.model.ModelAllocator
ModelAllocator.Callback -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalloc(Model model, ModelAllocator.Callback callback) Allocate a model in the arena.voiddelete()voidflush()
-
Field Details
-
vertexType
-
-
Constructor Details
-
ModelPool
Create a new model pool.- Parameters:
vertexType- The vertex type of the models that will be stored in the pool.
-
-
Method Details
-
alloc
Allocate a model in the arena.- Specified by:
allocin interfaceModelAllocator- Parameters:
model- The model to allocate.- Returns:
- A handle to the allocated model.
-
flush
public void flush() -
delete
public void delete()
-