Class GlBuffer
java.lang.Object
com.jozufozu.flywheel.backend.gl.GlObject
com.jozufozu.flywheel.backend.gl.buffer.GlBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longThe size (in bytes) of the buffer on the GPU.protected final GlBufferUsage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeleteInternal(int handle) longsize()voidupload(long ptr, long size) voidupload(MemoryBlock memoryBlock) voiduploadSpan(long offset, long ptr, long size) voiduploadSpan(long offset, MemoryBlock memoryBlock) Methods inherited from class com.jozufozu.flywheel.backend.gl.GlObject
checkHandle, delete, handle, handle, invalidateHandle, isInvalid
-
Field Details
-
usage
-
size
protected long sizeThe size (in bytes) of the buffer on the GPU.
-
-
Constructor Details
-
GlBuffer
public GlBuffer() -
GlBuffer
-
-
Method Details
-
upload
-
upload
public void upload(long ptr, long size) -
uploadSpan
-
uploadSpan
public void uploadSpan(long offset, long ptr, long size) -
size
public long size() -
deleteInternal
protected void deleteInternal(int handle) - Specified by:
deleteInternalin classGlObject
-