Class ViaBufferSubDataBuffer

java.lang.Object
dev.pfaff.altargui.render.RawBuffer
dev.pfaff.altargui.render.ViaBufferSubDataBuffer
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ViaBufferSubDataBuffer extends RawBuffer
  • Constructor Details

    • ViaBufferSubDataBuffer

      public ViaBufferSubDataBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget)
  • Method Details

    • capacity

      public int capacity()
      Specified by:
      capacity in class RawBuffer
    • isBoundDuringUpload

      public boolean isBoundDuringUpload()
      Specified by:
      isBoundDuringUpload in class RawBuffer
    • growBuffer

      public void growBuffer(int capacity, Runnable onRecreate)
      Description copied from class: RawBuffer
      Grows the buffer to at least the specified capacity. The buffer's contents are undefined after this operation.
      Specified by:
      growBuffer in class RawBuffer
    • resetNoGrow

      protected void resetNoGrow()
      Specified by:
      resetNoGrow in class RawBuffer
    • beginUploading

      public void beginUploading()
      Description copied from class: RawBuffer
      Begins uploading to the buffer. Attempts to upload more than capacity might result in a BufferOverflowException being thrown.

      The buffer's contents are undefined after this operation.

      Overrides:
      beginUploading in class RawBuffer
    • finishUploading

      public void finishUploading()
      Overrides:
      finishUploading in class RawBuffer
    • uploadAtUnchecked

      public final void uploadAtUnchecked(long offset, Uploadable uploadable)
      Specified by:
      uploadAtUnchecked in class RawBuffer
    • id

      public int id()
      Specified by:
      id in class RawBuffer