A bit of some clean up, API unifying, and some performance tweaks.

This commit is contained in:
Zed A. Shaw 2024-11-22 23:12:18 -05:00
parent a4926bedcb
commit fb1fd9d8bc
8 changed files with 72 additions and 42 deletions

View file

@ -51,8 +51,8 @@ struct SFMLRender {
sf::Sprite &get_text_sprite(wchar_t tile);
bool resize_grid(int new_size, Panel &panel_out);
void render_grid(const std::wstring &text, float x, float y);
void render_text(const std::wstring &text, sf::Color bgcolor, float x, float y);
void render_grid(const std::wstring &text, sf::Color default_fg, sf::Color default_bg, float x, float y);
void render_text(const std::wstring &text, sf::Color default_fg, sf::Color default_bg, float x, float y);
void draw(Panel &panel, float x_offset=0.0f, float y_offset=0.0f);