Class ViaBufferSubDataBuffer
java.lang.Object
dev.pfaff.altargui.render.RawBuffer
dev.pfaff.altargui.render.ViaBufferSubDataBuffer
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class dev.pfaff.altargui.render.RawBuffer
bindTarget
-
Constructor Summary
ConstructorsConstructorDescriptionViaBufferSubDataBuffer
(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Begins uploading to the buffer.int
capacity()
void
void
growBuffer
(int capacity, Runnable onRecreate) Grows the buffer to at least the specified capacity.int
id()
boolean
protected void
final void
uploadAtUnchecked
(long offset, Uploadable uploadable)
-
Constructor Details
-
ViaBufferSubDataBuffer
public ViaBufferSubDataBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget bindTarget)
-
-
Method Details
-
capacity
-
isBoundDuringUpload
public boolean isBoundDuringUpload()- Specified by:
isBoundDuringUpload
in classRawBuffer
-
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
-
uploadAtUnchecked
- Specified by:
uploadAtUnchecked
in classRawBuffer
-
id
-