visualization-tools

Home > @visualization-tools/core > GlRenderer

GlRenderer class

WebGl system hooks and config (clearing bits, TGlFeatureFlags etc). Most WebGl state is handled at the TGlComponentRenderer level.

Signature:

export declare class GlRenderer<TComponentRenderer extends TGlComponentRenderer<TGlContext, never>> implements IGlRenderer<TComponentRenderer> 

Implements: IGlRenderer<TComponentRenderer>

Constructors

Constructor Modifiers Description
(constructor)(context, options, renderContextFactory, callbacks, sharedState)   Constructs a new instance of the GlRenderer class

Properties

Property Modifiers Type Description
componentRendererFactory   IComponentRendererFactory<IGlProgramSpec, TComponentRenderer>  
componentRendererProvider   IComponentRendererProvider<TComponentRenderer>  
context   TExtractGcContext<TComponentRenderer>  
graphicsComponents   GraphicsComponentStore<TComponentRenderer>  
sharedState   IGlRendererSharedState  
transformComponents   ITransformComponentStore<TGl2ComponentRenderer>  

Methods

Method Modifiers Description
createOne(context, options, localizations, callbacks) static  
destroyBuffers(buffers)    
initializeBuffers(buffers)    
onAfterPlotDraw()    
onBeforePlotDraw(plot, canvasDims)    
onContextLost()    
onContextRegained(context)