aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-16 07:34:47 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-16 07:34:47 +0200
commit1952897a8cb411d9b10d75ac6a8c223924c07e09 (patch)
tree098414ec3216870a7e4145ba6d4c0c77c9206880 /include
parent97f1b1c735775d1e22412bbcf98ef403f9ee2275 (diff)
Fix resize event sometimes not triggered (set window gravity)
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 */