Class AbstractMappedBuffer
java.lang.Object
dev.pfaff.altargui.render.RawBuffer
dev.pfaff.altargui.render.AbstractMappedBuffer
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
MappedBuffer
,PersistentlyMappedBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.pfaff.altargui.render.RawBuffer
RawBuffer.Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected @Nullable Arena
protected @Nullable MemorySegment
Fields inherited from class dev.pfaff.altargui.render.RawBuffer
bindTarget
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMappedBuffer
(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget, boolean isShared) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
capacity()
void
close()
boolean
protected final Arena
newArena()
toString()
final void
uploadAtUnchecked
(long offset, Uploadable uploadable) Methods inherited from class dev.pfaff.altargui.render.RawBuffer
beginUploading, bind, boundIfNotAlreadyDuringUpload, checkCompleteUpload, dump, finishUploading, growBuffer, id, length, reset, resetNoGrow, setLength, unbind, upload, uploadAt
-
Field Details
-
mappedBuffer
-
mapArena
-
capacity
protected int capacity
-
-
Constructor Details
-
AbstractMappedBuffer
public AbstractMappedBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget, boolean isShared)
-
-
Method Details
-
newArena
-
capacity
-
isBoundDuringUpload
public boolean isBoundDuringUpload()- Specified by:
isBoundDuringUpload
in classRawBuffer
-
uploadAtUnchecked
- Specified by:
uploadAtUnchecked
in classRawBuffer
-
close
-
toString
-