visualization-tools

Home > @visualization-tools/core > IGlBuffer

IGlBuffer interface

Dirty checked wrapper of WebGLBuffer. Modify via IGlAttribute.

Signature:

export interface IGlBuffer<TArray extends TTypedArray> extends IBuffer 

Extends: IBuffer

Properties

Property Type Description
changeId number  
isDirty boolean  

Methods

Method Description
bindArray(context, usage)  
bindTransform(context, index)  
destroy(context)  
getSubBufferData(context, result)  
initialize(context)  
onContextLost()  
setData(data, changeId)  
setSize(context, byteSize, usage, changeId)  
setSubBufferData(context, byteOffset, data, changeId, modificationId) For a given changeId multiple writes are allowed where the modificationId is greater than the previous value. Every time changeId changes this is reset.