Package com.mojang.blaze3d.vertex
Class VertexBuffer
java.lang.Object
com.mojang.blaze3d.vertex.VertexBuffer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private VertexFormat
private int
private int
private VertexFormat.IndexType
private VertexFormat.Mode
private final VertexBuffer.Usage
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
_drawWithShader
(org.joml.Matrix4f p_253705_, org.joml.Matrix4f p_253737_, ShaderInstance p_166879_) void
bind()
void
close()
void
draw()
void
drawWithShader
(org.joml.Matrix4f p_254480_, org.joml.Matrix4f p_254555_, ShaderInstance p_253993_) private VertexFormat.IndexType
boolean
static void
unbind()
void
void
uploadIndexBuffer
(ByteBufferBuilder.Result p_350937_) uploadIndexBuffer
(MeshData.DrawState p_350538_, ByteBuffer p_231225_) private VertexFormat
uploadVertexBuffer
(MeshData.DrawState p_350866_, ByteBuffer p_231220_)
-
Field Details
-
usage
-
vertexBufferId
private int vertexBufferId -
indexBufferId
private int indexBufferId -
arrayObjectId
private int arrayObjectId -
format
-
sequentialIndices
-
indexType
-
indexCount
private int indexCount -
mode
-
-
Constructor Details
-
VertexBuffer
-
-
Method Details
-
upload
-
uploadIndexBuffer
-
uploadVertexBuffer
private VertexFormat uploadVertexBuffer(MeshData.DrawState p_350866_, @Nullable ByteBuffer p_231220_) -
uploadIndexBuffer
@Nullable private RenderSystem.AutoStorageIndexBuffer uploadIndexBuffer(MeshData.DrawState p_350538_, @Nullable ByteBuffer p_231225_) -
bind
public void bind() -
unbind
public static void unbind() -
draw
public void draw() -
getIndexType
-
drawWithShader
public void drawWithShader(org.joml.Matrix4f p_254480_, org.joml.Matrix4f p_254555_, ShaderInstance p_253993_) -
_drawWithShader
private void _drawWithShader(org.joml.Matrix4f p_253705_, org.joml.Matrix4f p_253737_, ShaderInstance p_166879_) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getFormat
-
isInvalid
public boolean isInvalid()
-