updateAtlas

actual fun updateAtlas(uploads: List<GlyphUpload>)

Updates the atlas textures with pending glyph uploads from the native engine.

The upload data contains pre-processed alpha values from Rust:

  • R channel: 255 (white)

  • G channel: shadow alpha

  • B channel: 255 (white)

  • A channel: normal text alpha

Parameters

uploads

List of glyph regions to upload

expect fun updateAtlas(uploads: List<GlyphUpload>)

Updates the atlas texture with pending uploads from the native engine. Call this before drawing if the engine has pending uploads.

Parameters

uploads

List of glyph regions to upload to the atlas

actual fun updateAtlas(uploads: List<GlyphUpload>)

Updates the atlas textures with pending glyph uploads from the native engine.

The upload data contains pre-processed alpha values from Rust:

  • R channel: 255 (white)

  • G channel: shadow alpha

  • B channel: 255 (white)

  • A channel: normal text alpha

Parameters

uploads

List of glyph regions to upload