aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-30 22:42:59 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-30 22:42:59 +0000
commit2457991e3e882fa091439797000ba6f269410ede (patch)
tree3fac1a8417039242f02dabfe3ffcb6364e4a60b6 /src
parent4444e1f0a6117e42189d4d15105bd20b8497cd3a (diff)
downloadimv-2457991e3e882fa091439797000ba6f269410ede.tar.gz
Document imv_texture's methods
Diffstat (limited to 'src')
-rw-r--r--src/texture.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/texture.h b/src/texture.h
index 7c90ae9..affde39 100644
--- a/src/texture.h
+++ b/src/texture.h
@@ -35,10 +35,17 @@ struct imv_texture {
SDL_Renderer *renderer; /* SDL renderer to draw to */
};
+
+/* Initialises an instance of imv_texture */
void imv_init_texture(struct imv_texture *tex, SDL_Renderer *r);
+
+/* Cleans up all resources owned by a imv_texture instance */
void imv_destroy_texture(struct imv_texture *tex);
+/* Updates the texture to contain the data in the image parameter */
int imv_texture_set_image(struct imv_texture *tex, FIBITMAP *image);
+
+/* Draw the texture at the given position with the given scale */
void imv_texture_draw(struct imv_texture *tex, int x, int y, double scale);
#endif