aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/viewport.h b/src/viewport.h
index 0f19b85..d1803d4 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -37,11 +37,11 @@ enum imv_zoom_source {
IMV_ZOOM_KEYBOARD
};
-/* Initialises an instance of imv_viewport */
-void imv_init_viewport(struct imv_viewport *view, SDL_Window *window);
+/* Creates an instance of imv_viewport */
+struct imv_viewport *imv_viewport_create(SDL_Window *window);
-/* Cleans up all resources owned by a imv_viewport instance */
-void imv_destroy_viewport(struct imv_viewport *view);
+/* Cleans up an imv_viewport instance */
+void imv_viewport_free(struct imv_viewport *view);
/* Toggle their viewport's fullscreen mode. Triggers a redraw */
void imv_viewport_toggle_fullscreen(struct imv_viewport *view);