visualization-tools

Home > @visualization-tools/core > GlRendererSharedState

GlRendererSharedState class

Webgl state that is shred between entity renderers.

Signature:

export declare class GlRendererSharedState implements IGlRendererSharedState 

Implements: IGlRendererSharedState

Constructors

Constructor Modifiers Description
(constructor)(context, extensions, isGl2)   Constructs a new instance of the GlRendererSharedState class

Properties

Property Modifiers Type Description
entityBuffers   IEntityBufferStore<IBufferLayout<IGlBuffer<TTypedArray>>>  
frameCounter   number  
maxTextureCount   number  
scissorRange   IReadonlyRange2d<TTypedArray> | null  
textureIndex   number  

Methods

Method Modifiers Description
bindVao(vao)    
claimTextureUnit()    
clearScissor()    
createOne(context, extensions, isGl2) static  
isProgramActive(program)    
onContextLost()    
onNewFrame()    
setContext(context)    
updateScissorRange(range)    
useProgram(program)