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 recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MeshData.DrawStateprivate ByteBufferBuilder.Resultprivate final ByteBufferBuilder.Result -
Constructor Summary
ConstructorsConstructorDescriptionMeshData(ByteBufferBuilder.Result pVertexBuffer, MeshData.DrawState pDrawState) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()sortQuads(ByteBufferBuilder pBufferBuilder, VertexSorting pSorting) private static org.joml.Vector3f[]unpackQuadCentroids(ByteBuffer pByteBuffer, int pVertexCount, VertexFormat pFormat)
-
Field Details
-
vertexBuffer
-
indexBuffer
-
drawState
-
-
Constructor Details
-
MeshData
-
-
Method Details
-
unpackQuadCentroids
private static org.joml.Vector3f[] unpackQuadCentroids(ByteBuffer pByteBuffer, int pVertexCount, VertexFormat pFormat) -
vertexBuffer
-
indexBuffer
-
drawState
-
sortQuads
@Nullable public MeshData.SortState sortQuads(ByteBufferBuilder pBufferBuilder, VertexSorting pSorting) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-