Class RenderSystem.ShapeIndexBuffer

java.lang.Object
com.mojang.blaze3d.systems.RenderSystem.ShapeIndexBuffer
Enclosing class:
RenderSystem

@Environment(CLIENT) public static final class RenderSystem.ShapeIndexBuffer extends Object
An index buffer that holds a pre-made indices for a specific shape. If this buffer is not large enough for the required number of indices when this buffer is bound, it automatically grows and fills indices using a given triangulator.
Mappings:
Namespace Name
official com/mojang/blaze3d/systems/RenderSystem$a
intermediary com/mojang/blaze3d/systems/RenderSystem$class_5590
named com/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer
  • Field Details

    • vertexCountInShape

      private final int vertexCountInShape
      Mappings:
      Namespace Name Mixin selector
      official a Lcom/mojang/blaze3d/systems/RenderSystem$a;a:I
      intermediary field_27332 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;field_27332:I
      named vertexCountInShape Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;vertexCountInShape:I
    • vertexCountInTriangulated

      private final int vertexCountInTriangulated
      Mappings:
      Namespace Name Mixin selector
      official b Lcom/mojang/blaze3d/systems/RenderSystem$a;b:I
      intermediary field_27333 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;field_27333:I
      named vertexCountInTriangulated Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;vertexCountInTriangulated:I
    • triangulator

      private final RenderSystem.ShapeIndexBuffer.Triangulator triangulator
      Mappings:
      Namespace Name Mixin selector
      official c Lcom/mojang/blaze3d/systems/RenderSystem$a;c:Lcom/mojang/blaze3d/systems/RenderSystem$a$a;
      intermediary field_27334 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;field_27334:Lcom/mojang/blaze3d/systems/RenderSystem$class_5590$class_5591;
      named triangulator Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;triangulator:Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer$Triangulator;
    • id

      private int id
      Mappings:
      Namespace Name Mixin selector
      official d Lcom/mojang/blaze3d/systems/RenderSystem$a;d:I
      intermediary field_27335 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;field_27335:I
      named id Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;id:I
    • indexType

      private VertexFormat.IndexType indexType
      Mappings:
      Namespace Name Mixin selector
      official e Lcom/mojang/blaze3d/systems/RenderSystem$a;e:Lelu$a;
      intermediary field_27336 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;field_27336:Lnet/minecraft/class_293$class_5595;
      named indexType Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;indexType:Lnet/minecraft/client/render/VertexFormat$IndexType;
    • size

      private int size
      Mappings:
      Namespace Name Mixin selector
      official f Lcom/mojang/blaze3d/systems/RenderSystem$a;f:I
      intermediary field_27337 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;field_27337:I
      named size Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;size:I
  • Constructor Details

    • ShapeIndexBuffer

      ShapeIndexBuffer(int vertexCountInShape, int vertexCountInTriangulated, RenderSystem.ShapeIndexBuffer.Triangulator triangulator)
      Parameters:
      vertexCountInShape - the number of vertices in a shape
      vertexCountInTriangulated - the number of vertices in the triangles decomposed from the shape
      triangulator - a function that decomposes a shape into triangles
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcom/mojang/blaze3d/systems/RenderSystem$a;<init>(IILcom/mojang/blaze3d/systems/RenderSystem$a$a;)V
      intermediary <init> Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;<init>(IILcom/mojang/blaze3d/systems/RenderSystem$class_5590$class_5591;)V
      named <init> Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;<init>(IILcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer$Triangulator;)V
  • Method Details

    • isLargeEnough

      public boolean isLargeEnough(int requiredSize)
      Mappings:
      Namespace Name Mixin selector
      official a Lcom/mojang/blaze3d/systems/RenderSystem$a;a(I)Z
      intermediary method_43409 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;method_43409(I)Z
      named isLargeEnough Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;isLargeEnough(I)Z
    • bindAndGrow

      public void bindAndGrow(int requiredSize)
      Binds this buffer as a current index buffer. If necessary, it grows this buffer in size and uploads indices to the corresponding buffer in GPU.
      Mappings:
      Namespace Name Mixin selector
      official b Lcom/mojang/blaze3d/systems/RenderSystem$a;b(I)V
      intermediary method_43410 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;method_43410(I)V
      named bindAndGrow Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;bindAndGrow(I)V
    • grow

      private void grow(int requiredSize)
      Mappings:
      Namespace Name Mixin selector
      official c Lcom/mojang/blaze3d/systems/RenderSystem$a;c(I)V
      intermediary method_31920 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;method_31920(I)V
      named grow Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;grow(I)V
    • getIndexConsumer

      private IntConsumer getIndexConsumer(ByteBuffer indexBuffer)
      Mappings:
      Namespace Name Mixin selector
      official a Lcom/mojang/blaze3d/systems/RenderSystem$a;a(Ljava/nio/ByteBuffer;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
      intermediary method_31922 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;method_31922(Ljava/nio/ByteBuffer;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
      named getIndexConsumer Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;getIndexConsumer(Ljava/nio/ByteBuffer;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
    • getIndexType

      public VertexFormat.IndexType getIndexType()
      Mappings:
      Namespace Name Mixin selector
      official a Lcom/mojang/blaze3d/systems/RenderSystem$a;a()Lelu$a;
      intermediary method_31924 Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;method_31924()Lnet/minecraft/class_293$class_5595;
      named getIndexType Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;getIndexType()Lnet/minecraft/client/render/VertexFormat$IndexType;