aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 8e3f626..ad8e1dd 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -39,11 +39,12 @@ bool mgl_window_poll_event(mgl_window *self, mgl_event *event);
void mgl_window_display(mgl_window *self);
/*
- The previous view is returned in |prev_view|. |prev_view| may be NULL.
This should be called every frame to retain the view.
- Make sure to set the view back to |prev_view| after rendering items
- inside the view.
+ Make sure to set the view back to the previous view after rendering items
+ by saving the previous view with |mgl_window_get_view| and then call
+ |mgl_window_set_view| with that saved view.
*/
-void mgl_window_set_view(mgl_window *self, mgl_view *new_view, mgl_view *prev_view);
+void mgl_window_set_view(mgl_window *self, mgl_view *new_view);
+void mgl_window_get_view(mgl_window *self, mgl_view *view);
#endif /* MGL_WINDOW_H */