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

@Internal public class LegacyVertexArray extends VertexArray
  • Constructor Details

    • LegacyVertexArray

      public LegacyVertexArray(int id)
  • Method Details

    • upload

      public void upload(int attributeStart, com.mojang.blaze3d.vertex.MeshData meshData, VertexArray.DrawUsage usage)
      Description copied from class: VertexArray
      Uploads vanilla mc mesh data into this vertex array. Only a single mesh can be uploaded this way.
      Overrides:
      upload in class VertexArray
      Parameters:
      attributeStart - The attribute to start uploading vertex data to
      meshData - The data to upload
      usage - The draw usage
    • 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