Class PersistentlyMappedBuffer
java.lang.Object
dev.pfaff.altargui.render.RawBuffer
dev.pfaff.altargui.render.AbstractMappedBuffer
dev.pfaff.altargui.render.PersistentlyMappedBuffer
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class dev.pfaff.altargui.render.AbstractMappedBuffer
capacity, mapArena, mappedBuffer
Fields inherited from class dev.pfaff.altargui.render.RawBuffer
bindTarget
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentlyMappedBuffer
(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget, boolean isShared) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
growBuffer
(int capacity, Runnable onRecreate) Grows the buffer to at least the specified capacity.int
id()
protected void
Methods inherited from class dev.pfaff.altargui.render.AbstractMappedBuffer
capacity, close, isBoundDuringUpload, newArena, toString, uploadAtUnchecked
Methods inherited from class dev.pfaff.altargui.render.RawBuffer
beginUploading, bind, boundIfNotAlreadyDuringUpload, checkCompleteUpload, create, finishUploading, length, reset, setLength, unbind, upload, uploadAt
-
Constructor Details
-
PersistentlyMappedBuffer
public PersistentlyMappedBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget, boolean isShared)
-
-
Method Details
-
growBuffer
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 classRawBuffer
-
resetNoGrow
protected void resetNoGrow()- Specified by:
resetNoGrow
in classRawBuffer
-
id
-
dump
-