summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 2c8f7a4..cddb6c9 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -216,6 +216,14 @@ void state_t::render_text(v2f_t x, float height, const wchar_t *wstr,
window->draw(text);
}
+void state_t::render_rect(rectf_t rect, sf::Color color)
+{
+ wot_rect.setSize(rect.dims());
+ wot_rect.setPosition(rect[0]);
+ wot_rect.setFillColor(color);
+ window->draw(wot_rect);
+}
+
void state_t::render_hlrect(rectf_t rect, sf::Color color)
{
sf::Color fill;