Class VertexBuffer
- java.lang.Object
-
- net.minecraft.client.renderer.vertex.VertexBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class VertexBuffer extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private VertexFormat
format
private int
id
private int
vertexCount
-
Constructor Summary
Constructors Constructor Description VertexBuffer(VertexFormat p_i46098_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind()
void
close()
void
draw(Matrix4f p_227874_1_, int p_227874_2_)
static void
unbind()
void
upload(BufferBuilder p_227875_1_)
private void
upload_(BufferBuilder p_227880_1_)
java.util.concurrent.CompletableFuture<java.lang.Void>
uploadLater(BufferBuilder p_227878_1_)
-
-
-
Field Detail
-
id
private int id
-
format
private final VertexFormat format
-
vertexCount
private int vertexCount
-
-
Constructor Detail
-
VertexBuffer
public VertexBuffer(VertexFormat p_i46098_1_)
-
-
Method Detail
-
bind
public void bind()
-
upload
public void upload(BufferBuilder p_227875_1_)
-
uploadLater
public java.util.concurrent.CompletableFuture<java.lang.Void> uploadLater(BufferBuilder p_227878_1_)
-
upload_
private void upload_(BufferBuilder p_227880_1_)
-
draw
public void draw(Matrix4f p_227874_1_, int p_227874_2_)
-
unbind
public static void unbind()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-