From 13158fb6cd4fcb29c838ecc964a8baa41a7c1e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 19 Oct 2023 12:34:43 +0200 Subject: [PATCH] Text: mention the texture coordinate matrix helper in AbstractGlyphCache. --- src/Magnum/Text/AbstractGlyphCache.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Magnum/Text/AbstractGlyphCache.h b/src/Magnum/Text/AbstractGlyphCache.h index 5fbc1c910..ee43055d1 100644 --- a/src/Magnum/Text/AbstractGlyphCache.h +++ b/src/Magnum/Text/AbstractGlyphCache.h @@ -186,6 +186,12 @@ update its actual GPU-side texture based on what area of the image was updated. In case of @ref DistanceFieldGlyphCache for example it also triggers distance field generation for given area. +If the images put into the cache are meant to be used with general meshes, the +@ref TextureTools::atlasTextureCoordinateTransformation() function can be used +to create an appropriate texture coordinate transformation matrix. See its +documentation for an example of calculating and applying the matrix to either +the mesh directly or to a material / shader. + @subsection Text-AbstractGlyphCache-filling-incremental Incremental population As long as the cache size allows, it's possible to add more fonts with