Class BatchDrawingTracker

java.lang.Object
com.jozufozu.flywheel.backend.instancing.BatchDrawingTracker

public class BatchDrawingTracker extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Set<net.minecraft.client.renderer.RenderType>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets all DrawBuffers to 0 vertices.
    void
    Draws all active DrawBuffers and reset them.
    void
    endBatch(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • activeTypes

      protected final Set<net.minecraft.client.renderer.RenderType> 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.