summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 7a798ab..8d4949b 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -194,6 +194,12 @@ static rectf_t window_bounds(sf::RenderWindow *window)
return bounds;
}
+// NOTE: this includes the margin
+rectf_t state_t::window_in_world_space(void)
+{
+ return window_bounds(window);
+}
+
void state_t::render(game::state_t *game)
{
rectf_t bounds;