Function updateHtmlTexture
-
Parameters
- engine: EngineContext
Engine context.
- tex: HtmlTexture2D
Target texture from createHtmlTexture.
- invertY: boolean = tex._invertY
Override the upright-orientation flag for this upload.
Returns void
- engine: EngineContext
Upload the current pixels of the hosted element into the texture. On the native path this is a single
copyElementImageToTextureand must run inside a paint event — normally the internal paint listener calls it; call requestHtmlTextureUpdate to trigger a refresh from application code. When the native API is unavailable it rasterises the SVG fallback (async).