Class IndirectInstancer<I extends Instance>
java.lang.Object
com.jozufozu.flywheel.backend.engine.AbstractInstancer<I>
com.jozufozu.flywheel.backend.engine.indirect.IndirectInstancer<I>
- All Implemented Interfaces:
Instancer<I>
-
Field Summary
FieldsFields inherited from class com.jozufozu.flywheel.backend.engine.AbstractInstancer
changed, deleted, environment, handles, instances, lock, type -
Constructor Summary
ConstructorsConstructorDescriptionIndirectInstancer(InstanceType<I> type, Environment environment, Model model) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDraw(IndirectDraw draw) voiddelete()draws()voidvoidupdate()voiduploadInstances(StagingBuffer stagingBuffer, int instanceVbo) voiduploadModelIndices(StagingBuffer stagingBuffer, int modelIndexVbo) voidwriteModel(long ptr) Methods inherited from class com.jozufozu.flywheel.backend.engine.AbstractInstancer
clear, createInstance, instanceCount, notifyDirty, 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.instance.Instancer
createInstances
-
Field Details
-
modelIndex
public int modelIndex -
baseInstance
public int baseInstance
-
-
Constructor Details
-
IndirectInstancer
-
-
Method Details
-
addDraw
-
draws
-
update
public void update() -
writeModel
public void writeModel(long ptr) -
uploadInstances
-
uploadModelIndices
-
resetChanged
public void resetChanged() -
delete
public void delete()- Overrides:
deletein classAbstractInstancer<I extends Instance>
-