visualization-tools

Home > @visualization-tools/core > GlComponentRenderer

GlComponentRenderer class

Webgl / webgl2 component renderer implementation.

Signature:

export declare class GlComponentRenderer<TCtx extends TGlContext, TExts extends TGlExtensionKeys> implements IGlComponentRenderer<TCtx, TExts>, IGlComponentInstancedRenderer, IGlComponentVAORenderer 

Implements: IGlComponentRenderer<TCtx, TExts>, IGlComponentInstancedRenderer, IGlComponentVAORenderer

Constructors

Constructor Modifiers Description
(constructor)(context, program, extensions, specification, sharedState)   Constructs a new instance of the GlComponentRenderer class

Properties

Property Modifiers Type Description
context   TCtx  
extensions   TGlExtensions<TExts>  
isGl2   TIsGl2<TCtx>  
program   WebGLProgram  
sharedState   IGlRendererSharedState  
specification   IGlProgramSpec  
vao   WebGLVertexArrayObject | WebGLVertexArrayObjectOES | null  

Methods

Method Modifiers Description
addAttribute(attribute)    
addTexture(texture)    
addTransform(transformFeedback)    
addUniform(uniform)    
bindVao(vao)    
createVao()    
drawInstancedArrays(mode, first, count, instanceCount)    
getAttributeLocation(name)    
isVaoActive()    
onAfterDraw()    
onAfterInitialization()    
onBeforeDraw()    
onBeforeInitialization()    
onContextLost()    
useProgram()