Class DSAVertexAttribBindingVertexArray

java.lang.Object
foundry.veil.api.client.render.vertex.VertexArray
foundry.veil.impl.client.render.vertex.DSAVertexAttribBindingVertexArray
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource

@Internal public class DSAVertexAttribBindingVertexArray extends VertexArray
  • Constructor Details

    • DSAVertexAttribBindingVertexArray

      public DSAVertexAttribBindingVertexArray(int id)
  • Method Details

    • uploadIndexBuffer

      public void uploadIndexBuffer(ByteBuffer data)
      Description copied from class: VertexArray
      Uploads index data to the vertex array.
      Overrides:
      uploadIndexBuffer in class VertexArray
      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 class VertexArray
      Parameters:
      drawState - The buffer draw state
    • createBuffer

      protected int createBuffer()
      Specified by:
      createBuffer in class VertexArray
      Returns:
      Creates a new vertex buffer
    • uploadVertexBuffer

      protected void uploadVertexBuffer(int buffer, ByteBuffer data, int usage)
      Description copied from class: VertexArray
      Uploads vertex data to the specified buffer.
      Specified by:
      uploadVertexBuffer in class VertexArray
      Parameters:
      buffer - The buffer to upload into
      data - The data to upload
      usage - The data usage
    • editFormat

      public VertexArrayBuilder editFormat()
      Specified by:
      editFormat in class VertexArray
      Returns:
      A builder for applying changes to this array