summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'image.h')
-rw-r--r--image.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/image.h b/image.h
index 091e834..7a20bd8 100644
--- a/image.h
+++ b/image.h
@@ -21,15 +21,14 @@
#include "window.h"
-typedef enum scalemode_e {
+enum scalemode {
SCALE_DOWN = 0,
SCALE_FIT,
SCALE_ZOOM
-} scalemode_t;
+};
typedef struct img_s {
float zoom;
- scalemode_t scalemode;
unsigned char re;
int x;
int y;
@@ -37,8 +36,8 @@ typedef struct img_s {
int h;
} img_t;
-void imlib_init(win_t*);
-void imlib_destroy();
+void img_init(img_t*, win_t*);
+void img_free(img_t*);
int img_load(img_t*, const char*);
void img_render(img_t*, win_t*);