Class PersistentlyMappedBuffer

All Implemented Interfaces:
Closeable, AutoCloseable

public final class PersistentlyMappedBuffer extends AbstractMappedBuffer
  • Constructor Details

    • PersistentlyMappedBuffer

      public PersistentlyMappedBuffer(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
    • id

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

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