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:
parent
9083582420
commit
e57a13846f
2 changed files with 56 additions and 35 deletions
4
gui.hpp
4
gui.hpp
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue