Home > @visualization-tools/core > IGlBuffer
Dirty checked wrapper of WebGLBuffer. Modify via IGlAttribute.
Signature:
export interface IGlBuffer<TArray extends TTypedArray> extends IBuffer
Extends: IBuffer
| Property | Type | Description |
|---|---|---|
| changeId | number | |
| isDirty | boolean |
| 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. |