Home > @visualization-tools/core > GlTexture2d
Currently only supports canvas as texture.
Signature:
export declare class GlTexture2d implements IGlTexture2d
Implements: IGlTexture2d
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(name, data) | Constructs a new instance of the GlTexture2d class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| data | TexImageSource | null | ||
| name | string | ||
| uniformLocation | WebGLUniformLocation | null |
| Method | Modifiers | Description |
|---|---|---|
| bind(componentRenderer) | ||
| initialize(componentRenderer) | ||
| onContextLost() | ||
| updateData(canvas) |