Package com.mojang.blaze3d.vertex
Class VertexBuffer
java.lang.Object
com.mojang.blaze3d.vertex.VertexBuffer
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private VertexFormat
private int
private int
private VertexFormat.IndexType
private VertexFormat.Mode
private boolean
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
_drawWithShader(Matrix4f p_166877_, Matrix4f p_166878_, ShaderInstance p_166879_)
void
bind()
private void
void
close()
void
draw()
void
void
drawWithShader(Matrix4f p_166868_, Matrix4f p_166869_, ShaderInstance p_166870_)
static void
unbind()
static void
void
upload(BufferBuilder p_85926_)
private void
upload_(BufferBuilder p_85936_)
uploadLater(BufferBuilder p_85933_)
-
Field Details
-
vertextBufferId
private int vertextBufferId -
indexBufferId
private int indexBufferId -
indexType
-
arrayObjectId
private int arrayObjectId -
indexCount
private int indexCount -
mode
-
sequentialIndices
private boolean sequentialIndices -
format
-
-
Constructor Details
-
VertexBuffer
public VertexBuffer()
-
-
Method Details
-
bind
public void bind() -
upload
-
uploadLater
-
upload_
-
bindVertexArray
private void bindVertexArray() -
unbindVertexArray
public static void unbindVertexArray() -
draw
public void draw() -
drawWithShader
-
_drawWithShader
-
drawChunkLayer
public void drawChunkLayer() -
unbind
public static void unbind() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getFormat
-