From 2457991e3e882fa091439797000ba6f269410ede Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 30 Nov 2015 22:42:59 +0000 Subject: Document imv_texture's methods --- src/texture.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 -- cgit v1.2.3