Sceneview
 All Classes Functions Variables Enumerations Enumerator Groups Pages
Public Attributes | List of all members
sv::FontResource::CharData Struct Reference

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: