Interface RenderSystem.ShapeIndexBuffer.Triangulator

Enclosing class:
RenderSystem.ShapeIndexBuffer

@Environment(CLIENT) private static interface RenderSystem.ShapeIndexBuffer.Triangulator
A functional interface that decomposes a shape into triangles.

The input shape is represented by the index of the first vertex in the shape. An output triangle is represented by the indices of the vertices in the triangle.

See Also:
Mappings:
Namespace Name
official com/mojang/blaze3d/systems/RenderSystem$a$a
intermediary com/mojang/blaze3d/systems/RenderSystem$class_5590$class_5591
named com/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer$Triangulator
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(IntConsumer indexConsumer, int firstVertexIndex)
    Decomposes a shape into triangles.
  • Method Details

    • accept

      void accept(IntConsumer indexConsumer, int firstVertexIndex)
      Decomposes a shape into triangles.
      Parameters:
      indexConsumer - the consumer that accepts triangles
      firstVertexIndex - the index of the first vertex in the input shape
      Mappings:
      Namespace Name Mixin selector
      official accept Lcom/mojang/blaze3d/systems/RenderSystem$a$a;accept(Lit/unimi/dsi/fastutil/ints/IntConsumer;I)V
      intermediary accept Lcom/mojang/blaze3d/systems/RenderSystem$class_5590$class_5591;accept(Lit/unimi/dsi/fastutil/ints/IntConsumer;I)V
      named accept Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer$Triangulator;accept(Lit/unimi/dsi/fastutil/ints/IntConsumer;I)V