Class GPUInstancer<D extends InstanceData>
java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstancer<D>
com.jozufozu.flywheel.backend.instancing.instancing.GPUInstancer<D>
- All Implemented Interfaces:
Instancer<D>
-
Field Summary
FieldsFields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstancer
anyToRemove, data, factory, modelData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Free acquired resources.voidinit(ModelAllocator modelAllocator) booleanisEmpty()booleanvoidNotify the Instancer that some of its data needs updating.voidrender()protected voidMethods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstancer
clear, createInstance, getInstanceCount, getModelVertexCount, getVertexCount, notifyRemoval, removeDeletedInstances, stealInstance, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.api.Instancer
createInstances
-
Field Details
-
anyToUpdate
protected boolean anyToUpdate
-
-
Constructor Details
-
GPUInstancer
-
-
Method Details
-
notifyDirty
public void notifyDirty()Description copied from interface:InstancerNotify the Instancer that some of its data needs updating.This might be ignored, depending on the implementation. For the GPUInstancer, this triggers a scan of all instances.
-
render
public void render() -
init
-
isInitialized
public boolean isInitialized() -
isEmpty
public boolean isEmpty() -
delete
public void delete()Free acquired resources. All other Instancer methods are undefined behavior after calling delete. -
renderSetup
protected void renderSetup()
-