Class MappedBuffer

All Implemented Interfaces:
Closeable, AutoCloseable

public final class MappedBuffer extends AbstractMappedBuffer
  • Constructor Details

    • MappedBuffer

      public MappedBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget, boolean isShared)
  • Method Details

    • 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
    • id

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

      public void dump(String label, boolean capacity)
      Overrides:
      dump in class RawBuffer