Class MappedGlBuffer

All Implemented Interfaces:
Mappable

public class MappedGlBuffer extends GlBuffer implements Mappable
  • Field Details

  • Constructor Details

  • Method Details

    • alloc

      protected void alloc(long size)
      Specified by:
      alloc in class GlBuffer
    • upload

      public void upload(ByteBuffer directBuffer)
      Specified by:
      upload in class GlBuffer
    • getBuffer

      public MappedBuffer getBuffer(long offset, long length)
      Specified by:
      getBuffer in class GlBuffer
    • getType

      public GlBufferType getType()
      Specified by:
      getType in interface Mappable
    • isPersistent

      public boolean isPersistent()
      Description copied from interface: Mappable
      Indicates that this buffer need not be #flush()'d for its contents to sync.
      Specified by:
      isPersistent in interface Mappable
      Returns:
      true if this buffer is persistently mapped.