textmode.js / conversion / TextmodeConversionContext
Interface: TextmodeConversionContext
Interface for the context provided to conversion strategies during shader and uniform creation.
This context provides access to the renderer, GL context, source asset, and grid dimensions necessary for implementing custom conversion logic.
Properties
| Property | Type | Description |
|---|---|---|
font | TextmodeGlyphAtlas | Legacy alias for the active glyph atlas. Kept for backward compatibility with existing conversion strategies. |
gl | WebGL2RenderingContext | The native WebGL2 rendering context. Use this for creating textures, buffers, or other low-level WebGL resources. |
glyphAtlas | TextmodeGlyphAtlas | Backend-neutral glyph atlas currently being used for rendering. Prefer this in new code. |
pass? | TextmodeConversionPassContext | Metadata for the active source-level conversion stack pass. Undefined for legacy single-conversion rendering. |
renderer | GLRenderer | The WebGL renderer instance. |
source | TextmodeSource | The source asset (image, video, etc.) being converted. Provides access to the source texture and dimensions. |