Class LegacyVertexArray
java.lang.Object
foundry.veil.api.client.render.vertex.VertexArray
foundry.veil.impl.client.render.vertex.LegacyVertexArray
- 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
uploadVertexBuffer
(int buffer, ByteBuffer data, int usage) Uploads vertex data to the specified buffer.Methods inherited from class foundry.veil.api.client.render.vertex.VertexArray
bind, create, create, create, draw, drawIndirect, drawIndirectWithRenderType, drawInstanced, drawInstancedWithRenderType, drawWithRenderType, editFormat, free, getDrawMode, getId, getIndexCount, getIndexType, getOrCreateBuffer, setDrawMode, setIndexCount, unbind, upload, upload, upload, uploadIndexBuffer, 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
-
LegacyVertexArray
public LegacyVertexArray(int id)
-
-
Method Details
-
uploadVertexBuffer
Description copied from class:VertexArray
Uploads vertex data to the specified buffer.- Specified by:
uploadVertexBuffer
in classVertexArray
- Parameters:
buffer
- The buffer to upload intodata
- The data to uploadusage
- The data usage
-