Class BatchDrawingTracker
java.lang.Object
com.jozufozu.flywheel.backend.instancing.BatchDrawingTracker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Resets all DrawBuffers to 0 vertices.voidendBatch()Draws all active DrawBuffers and reset them.voidendBatch(net.minecraft.client.renderer.RenderType renderType) Draw and reset the DrawBuffer for the given RenderType.getDirectConsumer(net.minecraft.client.renderer.RenderType renderType, int vertexCount) Get a direct vertex consumer for drawing the given number of vertices to the given RenderType.
-
Field Details
-
activeTypes
-
-
Constructor Details
-
BatchDrawingTracker
public BatchDrawingTracker()
-
-
Method Details
-
getDirectConsumer
public DirectVertexConsumer getDirectConsumer(net.minecraft.client.renderer.RenderType renderType, int vertexCount) Get a direct vertex consumer for drawing the given number of vertices to the given RenderType.- Parameters:
renderType- The RenderType to draw to.vertexCount- The number of vertices that will be drawn.- Returns:
- A direct vertex consumer.
-
endBatch
public void endBatch()Draws all active DrawBuffers and reset them. -
endBatch
public void endBatch(net.minecraft.client.renderer.RenderType renderType) Draw and reset the DrawBuffer for the given RenderType.- Parameters:
renderType- The RenderType to draw.
-
clear
public void clear()Resets all DrawBuffers to 0 vertices.
-