Class DSAVertexArray
java.lang.Object
foundry.veil.api.client.render.vertex.VertexArray
foundry.veil.impl.client.render.vertex.DSAVertexArray
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested classes/interfaces inherited from class foundry.veil.api.client.render.vertex.VertexArray
VertexArray.DrawUsage, VertexArray.IndexType
-
Field Summary
Fields inherited from class foundry.veil.api.client.render.vertex.VertexArray
buffers, builder, drawMode, ELEMENT_ARRAY_BUFFER, id, indexCount, indexType, VERTEX_BUFFER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
uploadIndexBuffer
(com.mojang.blaze3d.vertex.MeshData.DrawState drawState) Uploads index data to the vertex array.void
uploadIndexBuffer
(ByteBuffer data) Uploads index data to the vertex array.Methods inherited from class foundry.veil.api.client.render.vertex.VertexArray
bind, clear, create, create, create, draw, drawIndirect, drawIndirectWithRenderType, drawInstanced, drawInstancedWithRenderType, drawWithRenderType, editFormat, free, getDrawMode, getId, getIndexCount, getIndexType, getOrCreateBuffer, setDrawMode, setIndexCount, setup, unbind, upload, upload, upload, uploadIndexBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
DSAVertexArray
public DSAVertexArray(int id)
-
-
Method Details
-
uploadIndexBuffer
Description copied from class:VertexArray
Uploads index data to the vertex array.- Overrides:
uploadIndexBuffer
in classVertexArray
- Parameters:
data
- The data to upload
-
uploadIndexBuffer
public void uploadIndexBuffer(com.mojang.blaze3d.vertex.MeshData.DrawState drawState) Description copied from class:VertexArray
Uploads index data to the vertex array.- Overrides:
uploadIndexBuffer
in classVertexArray
- Parameters:
drawState
- The buffer draw state
-