Class MappedBuffer
java.lang.Object
dev.pfaff.altargui.render.RawBuffer
dev.pfaff.altargui.render.AbstractMappedBuffer
dev.pfaff.altargui.render.MappedBuffer
- 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
ConstructorsConstructorDescriptionMappedBuffer
(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget, boolean isShared) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Begins uploading to the buffer.void
void
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
-
Constructor Details
-
MappedBuffer
public MappedBuffer(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
-
beginUploading
public void beginUploading()Description copied from class:RawBuffer
Begins uploading to the buffer. Attempts to upload more thancapacity
might result in aBufferOverflowException
being thrown.The buffer's contents are undefined after this operation.
- Overrides:
beginUploading
in classRawBuffer
-
finishUploading
public void finishUploading()- Overrides:
finishUploading
in classRawBuffer
-
id
-
dump
-