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 int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
_drawWithShader
(Matrix4f p_166877_, Matrix4f p_166878_, ShaderInstance p_166879_) void
bind()
void
close()
void
draw()
void
drawWithShader
(Matrix4f p_166868_, Matrix4f p_166869_, ShaderInstance p_166870_) private VertexFormat.IndexType
boolean
static void
unbind()
void
upload
(BufferBuilder.RenderedBuffer p_231222_) uploadIndexBuffer
(BufferBuilder.DrawState p_231224_, ByteBuffer p_231225_) private VertexFormat
uploadVertexBuffer
(BufferBuilder.DrawState p_231219_, ByteBuffer p_231220_)
-
Field Details
-
vertexBufferId
private int vertexBufferId -
indexBufferId
private int indexBufferId -
arrayObjectId
private int arrayObjectId -
format
-
sequentialIndices
-
indexType
-
indexCount
private int indexCount -
mode
-
-
Constructor Details
-
VertexBuffer
public VertexBuffer()
-
-
Method Details
-
upload
-
uploadVertexBuffer
-
uploadIndexBuffer
@Nullable private RenderSystem.AutoStorageIndexBuffer uploadIndexBuffer(BufferBuilder.DrawState p_231224_, ByteBuffer p_231225_) -
bind
public void bind() -
unbind
public static void unbind() -
draw
public void draw() -
getIndexType
-
drawWithShader
-
_drawWithShader
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getFormat
-
isInvalid
public boolean isInvalid()
-