Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::render::TextStyle Struct Reference

How a text is drawn. More...

#include <aegis2d/render/bitmap_font.hpp>

Public Attributes

float scale = 1.0F
 Size of a font pixel on screen, in logical pixels: 1 for the font's own size.
 
Color color {.r = 1.0F, .g = 1.0F, .b = 1.0F, .a = 1.0F}
 Color of the text, multiplied with the atlas.
 
std::int32_t layer = 0
 Layer of the text's sprites.
 

Detailed Description

How a text is drawn.

Member Data Documentation

◆ color

Color aegis2d::render::TextStyle::color {.r = 1.0F, .g = 1.0F, .b = 1.0F, .a = 1.0F}

Color of the text, multiplied with the atlas.

◆ layer

std::int32_t aegis2d::render::TextStyle::layer = 0

Layer of the text's sprites.

◆ scale

float aegis2d::render::TextStyle::scale = 1.0F

Size of a font pixel on screen, in logical pixels: 1 for the font's own size.


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