diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-16 07:34:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-16 07:34:47 +0200 |
commit | 1952897a8cb411d9b10d75ac6a8c223924c07e09 (patch) | |
tree | 098414ec3216870a7e4145ba6d4c0c77c9206880 /include | |
parent | 97f1b1c735775d1e22412bbcf98ef403f9ee2275 (diff) |
Fix resize event sometimes not triggered (set window gravity)
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/graphics/texture.h | 9 |
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 */ |