Package com.mojang.blaze3d.vertex
Class MeshData
java.lang.Object
com.mojang.blaze3d.vertex.MeshData
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MeshData.DrawState
private ByteBufferBuilder.Result
private final ByteBufferBuilder.Result
-
Constructor Summary
ConstructorsConstructorDescriptionMeshData
(ByteBufferBuilder.Result vertexBuffer, MeshData.DrawState drawState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
sortQuads
(ByteBufferBuilder bufferBuilder, VertexSorting sorting) private static org.joml.Vector3f[]
unpackQuadCentroids
(ByteBuffer byteBuffer, int vertexCount, VertexFormat format)
-
Field Details
-
vertexBuffer
-
indexBuffer
-
drawState
-
-
Constructor Details
-
MeshData
-
-
Method Details
-
unpackQuadCentroids
private static org.joml.Vector3f[] unpackQuadCentroids(ByteBuffer byteBuffer, int vertexCount, VertexFormat format) -
vertexBuffer
-
indexBuffer
-
drawState
-
sortQuads
@Nullable public MeshData.SortState sortQuads(ByteBufferBuilder bufferBuilder, VertexSorting sorting) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-