visualization-tools

Home > @visualization-tools/core > IGlAttribute > setSubBufferData

IGlAttribute.setSubBufferData() method

Overwrite data in the buffer. The argument modificationId is provided to allow multiple writes per draw, if the modificationId is larger than the previous call’s modificationId then the modification is allowed. This resets whenever changeId changes.

Signature:

setSubBufferData(componentRenderer: TGlBasicComponentRenderer, byteOffset: number, data: TArray, changeId: number, modificationId: number): void;

Parameters

Parameter Type Description
componentRenderer TGlBasicComponentRenderer  
byteOffset number  
data TArray  
changeId number  
modificationId number  

Returns:

void