A bit more caching and optimization then determine how to center glyphs in the center of the background if it fits.

This commit is contained in:
Zed A. Shaw 2024-10-21 22:43:34 -04:00
parent 9083582420
commit e57a13846f
2 changed files with 56 additions and 35 deletions

View file

@ -52,8 +52,10 @@ class GUI {
DinkyECS::World $world;
sf::Texture $font_texture;
std::unordered_map<wchar_t, sf::Sprite> $sprites;
Point $view_port = {0,0};
Point $view_port;
int $map_font_size;
sf::Glyph $base_glyph;
float $line_spacing;
public:
GUI();