Skip to content

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

PropertyTypeDescription
fontTextmodeFontThe font currently being used for rendering. Useful for accessing font texture data or metrics.
glWebGL2RenderingContextThe native WebGL2 rendering context. Use this for creating textures, buffers, or other low-level WebGL resources.
rendererGLRendererThe WebGL renderer instance.
sourceTextmodeSourceThe source asset (image, video, etc.) being converted. Provides access to the source texture and dimensions.