visualization-tools

Home > @visualization-tools/core > GlTexture2d

GlTexture2d class

Currently only supports canvas as texture.

Signature:

export declare class GlTexture2d implements IGlTexture2d 

Implements: IGlTexture2d

Constructors

Constructor Modifiers Description
(constructor)(name, data)   Constructs a new instance of the GlTexture2d class

Properties

Property Modifiers Type Description
data   TexImageSource | null  
name   string  
uniformLocation   WebGLUniformLocation | null  

Methods

Method Modifiers Description
bind(componentRenderer)    
initialize(componentRenderer)    
onContextLost()    
updateData(canvas)