visualization-tools

Home > @visualization-tools/core > AGlAttribute

AGlAttribute class

Wrapper for dirty checked GL attributes with VAO and shared mutable buffer support. ChangeIds must be generated program wide to avoid collisions IncrementingIdentifierFactory (rc-js-util) is a suitable implementation.

Signature:

export declare abstract class AGlAttribute<TArray extends TTypedArray> implements IGlAttribute<TArray> 

Implements: IGlAttribute<TArray>

Constructors

Constructor Modifiers Description
(constructor)(name, buffer, componentsPerVertex, byteOffset, byteStride, normalized)   DO NOT MANUALLY SHARE BUFFERS, **USE LINK**!

Properties

Property Modifiers Type Description
componentsPerVertex   number  
name   string  

Methods

Method Modifiers Description
bindArray(componentRenderer, usage)    
bindArrayInstanced(componentRenderer, divisor, usage)    
bindTransform(componentRenderer, index)    
getBuffer()    
getGlType(context)    
getSharableState()    
initialize(componentRenderer)    
link(sharedState)    
onContextLost()    
reset(componentRenderer)    
setBuffer(buffer)    
setData(data, changeId)    
setOffset(byteOffset)    
setSize(context, byteSize, usage, changeId)    
setStride(byteStride)    
setSubBufferData(componentRenderer, byteOffset, data, changeId, modificationId)    
swapBuffer(attribute)