visualization-tools

Home > @visualization-tools/core > GlBuffer

GlBuffer class

Dirty checked wrapper of WebGLBuffer. Modify via IGlAttribute.

Signature:

export declare class GlBuffer<TCtor extends TTypedArrayCtor> implements IGlBuffer<InstanceType<TCtor>> 

Implements: IGlBuffer<InstanceType<TCtor>>

Constructors

Constructor Modifiers Description
(constructor)(data, ctor)   Constructs a new instance of the GlBuffer class

Properties

Property Modifiers Type Description
changeId   number  
isDirty   boolean  

Methods

Method Modifiers Description
bindArray(context, usage)    
bindTransform(context, index)    
destroy(context)    
getSubBufferData(context, result)    
initialize(context)    
onContextLost()    
resetState()    
setData(data, changeId)    
setSize(context, byteSize, usage, changeId)    
setSubBufferData(context, byteOffset, data, changeId, modificationId)