Describes how to draw a character from the font texture map. More...
#include <sceneview/font_resource.hpp>
Public Attributes | |
float | u0 |
float | v0 |
float | u1 |
float | v1 |
float | width_to_height |
float | x0 |
float | y0 |
float | x1 |
float | y1 |
Describes how to draw a character from the font texture map.
The relevant quantities are:
To draw the character, draw a quad with:
Then, set anchor = (anchor.x + width_to_height * line_height, anchor.y, 0) to draw the next character.