Package com.mojang.blaze3d.systems
Class RenderSystem.ShapeIndexBuffer
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem.ShapeIndexBuffer
- Enclosing class:
RenderSystem
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
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
A functional interface that decomposes a shape into triangles. -
Field Summary
Modifier and TypeFieldDescriptionprivate int
private VertexFormat.IndexType
private int
private final RenderSystem.ShapeIndexBuffer.Triangulator
private final int
private final int
-
Constructor Summary
ConstructorDescriptionShapeIndexBuffer
(int vertexCountInShape, int vertexCountInTriangulated, RenderSystem.ShapeIndexBuffer.Triangulator triangulator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindAndGrow
(int requiredSize) Binds this buffer as a current index buffer.private IntConsumer
getIndexConsumer
(ByteBuffer indexBuffer) private void
grow
(int requiredSize) boolean
isLargeEnough
(int requiredSize)
-
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
- 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
- Mappings:
Namespace Name Mixin selector official e
Lcom/mojang/blaze3d/systems/RenderSystem$a;e:Lehj$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 shapevertexCountInTriangulated
- the number of vertices in the triangles decomposed from the shapetriangulator
- 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
- 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
- Mappings:
Namespace Name Mixin selector official a
Lcom/mojang/blaze3d/systems/RenderSystem$a;a()Lehj$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;
-