aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mgl/graphics/texture.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/mgl/graphics/texture.h b/include/mgl/graphics/texture.h
index 7048c20..f859554 100644
--- a/include/mgl/graphics/texture.h
+++ b/include/mgl/graphics/texture.h
@@ -1,6 +1,8 @@
#ifndef MGL_TEXTURE_H
#define MGL_TEXTURE_H
+#include <stdbool.h>
+
typedef struct mgl_texture mgl_texture;
typedef enum {
@@ -17,7 +19,12 @@ struct mgl_texture {
mgl_texture_format format;
};
-int mgl_texture_load_from_file(mgl_texture *self, const char *filepath);
+typedef struct {
+ bool compressed;
+} mgl_texture_load_options;
+
+/* |load_options| can be null, in which case default options are used */
+int mgl_texture_load_from_file(mgl_texture *self, const char *filepath, mgl_texture_load_options *load_options);
void mgl_texture_unload(mgl_texture *self);
#endif /* MGL_TEXTURE_H */