Browse Source

Text: mention the texture coordinate matrix helper in AbstractGlyphCache.

pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
13158fb6cd
  1. 6
      src/Magnum/Text/AbstractGlyphCache.h

6
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

Loading…
Cancel
Save