diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-04-14 17:02:28 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-04-14 17:02:28 +0100 |
commit | e352474df09257342410e74e8fb686f424819b9a (patch) | |
tree | b710bf2bae02c1ad25ea0f1878dd707bdf60bdb9 /src/viewport.h | |
parent | b9dd2cbc01bdd071fc44db771187d12860191d13 (diff) | |
download | imv-e352474df09257342410e74e8fb686f424819b9a.tar.gz |
Refactor viewport to new style
Diffstat (limited to 'src/viewport.h')
-rw-r--r-- | src/viewport.h | 8 |
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); |