cangine
Loading...
Searching...
No Matches
Public Attributes | List of all members
cangine::Character Struct Reference

A single cached glyph: its texture and layout metrics. More...

#include <text_renderer.hpp>

Collaboration diagram for cangine::Character:
Collaboration graph
[legend]

Public Attributes

Texture texture
 Texture holding the rasterized glyph.
 
int width
 Glyph bitmap width in pixels.
 
int height
 Glyph bitmap height in pixels.
 
int bearingX
 Horizontal offset from the origin to the glyph's left edge.
 
int bearingY
 Vertical offset from the baseline to the glyph's top edge.
 
unsigned int advance
 Horizontal advance to the next glyph (in 1/64 px).
 

Detailed Description

A single cached glyph: its texture and layout metrics.

Member Data Documentation

◆ advance

unsigned int cangine::Character::advance

Horizontal advance to the next glyph (in 1/64 px).

◆ bearingX

int cangine::Character::bearingX

Horizontal offset from the origin to the glyph's left edge.

◆ bearingY

int cangine::Character::bearingY

Vertical offset from the baseline to the glyph's top edge.

◆ height

int cangine::Character::height

Glyph bitmap height in pixels.

◆ texture

Texture cangine::Character::texture

Texture holding the rasterized glyph.

◆ width

int cangine::Character::width

Glyph bitmap width in pixels.


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