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