Class PersistentGlBuffer
java.lang.Object
com.jozufozu.flywheel.backend.gl.GlObject
com.jozufozu.flywheel.backend.gl.buffer.GlBuffer
com.jozufozu.flywheel.backend.gl.buffer.PersistentGlBuffer
- All Implemented Interfaces:
Mappable
-
Field Summary
Fields inherited from class com.jozufozu.flywheel.backend.gl.buffer.GlBuffer
capacity, growthMargin, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalloc(long size) voidCall this after all draw calls using this buffer are complete.getBuffer(long offset, long length) getType()booleanIndicates that this buffer need not be #flush()'d for its contents to sync.voidupload(ByteBuffer directBuffer) Methods inherited from class com.jozufozu.flywheel.backend.gl.buffer.GlBuffer
_create, bind, deleteInternal, ensureCapacity, getBuffer, getCapacity, requestPersistent, setGrowthMargin, unbindMethods inherited from class com.jozufozu.flywheel.backend.gl.GlObject
checkHandle, delete, handle, invalidateHandle, isInvalid, setHandle
-
Constructor Details
-
PersistentGlBuffer
-
-
Method Details
-
doneForThisFrame
public void doneForThisFrame()Description copied from class:GlBufferCall this after all draw calls using this buffer are complete.- Overrides:
doneForThisFramein classGlBuffer
-
alloc
protected void alloc(long size) -
upload
-
getBuffer
-
getType
-
isPersistent
public boolean isPersistent()Description copied from interface:MappableIndicates that this buffer need not be #flush()'d for its contents to sync.- Specified by:
isPersistentin interfaceMappable- Returns:
- true if this buffer is persistently mapped.
-