Tinkering with a way to do modal UIs for things like inventory etc.

This commit is contained in:
Zed A. Shaw 2024-12-30 09:41:16 -05:00
parent db441000f8
commit d8400d0a76
9 changed files with 120 additions and 92 deletions

View file

@ -203,6 +203,10 @@ void SFMLRender::render_text(const std::wstring &text, sf::Color default_fg, sf:
}
}
void SFMLRender::draw_sprite(sf::Sprite &sprite, sf::Shader *shader) {
$window.draw(sprite, shader);
}
/*
* Does not render the panel, you have to do that so you can control
* when things render.