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 | TextmodeFont | The font currently being used for rendering. Useful for accessing font texture data or metrics. |
gl | WebGL2RenderingContext | The native WebGL2 rendering context. Use this for creating textures, buffers, or other low-level WebGL resources. |
renderer | GLRenderer | The WebGL renderer instance. |
source | TextmodeSource | The source asset (image, video, etc.) being converted. Provides access to the source texture and dimensions. |