public class VertexBuffer
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
private int |
count |
private int |
glBufferId |
private VertexFormat |
vertexFormat |
Constructor and Description |
---|
VertexBuffer(VertexFormat vertexFormatIn) |
Modifier and Type | Method and Description |
---|---|
void |
bindBuffer() |
void |
close() |
void |
draw(Matrix4f matrixIn,
int modeIn) |
static void |
unbindBuffer() |
void |
upload(BufferBuilder bufferIn) |
java.util.concurrent.CompletableFuture<java.lang.Void> |
uploadLater(BufferBuilder bufferIn) |
private void |
uploadRaw(BufferBuilder bufferIn) |
private int glBufferId
private final VertexFormat vertexFormat
private int count
public VertexBuffer(VertexFormat vertexFormatIn)
public void bindBuffer()
public void upload(BufferBuilder bufferIn)
public java.util.concurrent.CompletableFuture<java.lang.Void> uploadLater(BufferBuilder bufferIn)
private void uploadRaw(BufferBuilder bufferIn)
public void draw(Matrix4f matrixIn, int modeIn)
public static void unbindBuffer()
public void close()
close
in interface java.lang.AutoCloseable