com.mojang.blaze3d.vertex

public class VertexBuffer

implements AutoCloseable

ffy
com.mojang.blaze3d.vertex.VertexBuffer
net.minecraft.class_291
net.minecraft.client.gl.VertexBuffer

Field summary

Modifier and TypeField
private final BufferUsage
a
usage
field_44792
usage
private final GpuBuffer
b
vertexBuffer
field_1594
vertexBuffer
private GpuBuffer
c
indexBuffer
field_27366
indexBuffer
private int
d
arrayObjectId
field_29338
vertexArrayId
private VertexFormat
e
format
field_29339
vertexFormat
private RenderSystem$AutoStorageIndexBuffer
f
sequentialIndices
field_38983
sharedSequentialIndexBuffer
private VertexFormat$IndexType
g
indexType
field_27367
indexType
private int
h
indexCount
field_1593
indexCount
private VertexFormat$Mode
i
mode
field_27368
drawMode

Constructor summary

ModifierConstructor
public (BufferUsage usage)

Method summary

Modifier and TypeMethod
public static VertexBuffer
a(fga$c arg0, fga arg1, Consumer<ffz> arg2)
uploadStatic(VertexFormat$Mode arg0, VertexFormat arg1, Consumer<VertexConsumer> arg2)
method_65175(class_293$class_5596 arg0, class_293 arg1, Consumer<class_4588> arg2)
createAndUpload(VertexFormat$DrawMode drawMode, VertexFormat format, Consumer<VertexConsumer> callback)
public void
a(ffu arg0)
upload(MeshData arg0)
method_1352(class_9801 arg0)
upload(BuiltBuffer data)
public void
a(ffs$a arg0)
uploadIndexBuffer(ByteBufferBuilder$Result arg0)
method_60829(class_9799$class_9800 arg0)
uploadIndexBuffer(BufferAllocator$CloseableBuffer buf)
private VertexFormat
a(ffu$a arg0, ByteBuffer arg1)
uploadVertexBuffer(MeshData$DrawState arg0, ByteBuffer arg1)
method_43442(class_9801$class_4574 arg0, ByteBuffer arg1)
uploadVertexBuffer(BuiltBuffer$DrawParameters parameters, ByteBuffer vertexBuffer)
private RenderSystem$AutoStorageIndexBuffer
b(ffu$a arg0, ByteBuffer arg1)
uploadIndexBuffer(MeshData$DrawState arg0, ByteBuffer arg1)
method_43443(class_9801$class_4574 arg0, ByteBuffer arg1)
uploadIndexBuffer(BuiltBuffer$DrawParameters parameters, ByteBuffer buf)
public void
a()
bind()
method_1353()
bind()
public static void
b()
unbind()
method_1354()
unbind()
public void
c()
draw()
method_35665()
draw()
private VertexFormat$IndexType
f()
getIndexType()
method_43445()
getIndexType()
public void
a(org.joml.Matrix4f arg0, org.joml.Matrix4f arg1, glj arg2)
drawWithShader(org.joml.Matrix4f arg0, org.joml.Matrix4f arg1, CompiledShaderProgram arg2)
method_34427(org.joml.Matrix4f arg0, org.joml.Matrix4f arg1, class_5944 arg2)
draw(org.joml.Matrix4f viewMatrix, org.joml.Matrix4f projectionMatrix, ShaderProgram program)
public void
a(gmj arg0)
drawWithRenderType(RenderType arg0)
method_65176(class_1921 arg0)
draw(RenderLayer layer)
public void
close()
close()
public VertexFormat
d()
getFormat()
method_34435()
getVertexFormat()
public boolean
e()
isInvalid()
method_43444()
isClosed()