From 1952897a8cb411d9b10d75ac6a8c223924c07e09 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 16 Oct 2021 07:34:47 +0200 Subject: Fix resize event sometimes not triggered (set window gravity) --- include/mgl/graphics/texture.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') 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 + 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 */ -- cgit v1.2.3