diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-25 00:01:43 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-25 00:01:43 +0200 |
commit | 05da9076d3d1b0d770c13572368f974786edcd92 (patch) | |
tree | f34297432006b714914ba97c281521262b842c42 /include | |
parent | 5cc09d9389243791f8f65f96a4d19a74337f2a73 (diff) |
Use const pointer
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/graphics/texture.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mgl/graphics/texture.h b/include/mgl/graphics/texture.h index 387a977..9524ab1 100644 --- a/include/mgl/graphics/texture.h +++ b/include/mgl/graphics/texture.h @@ -31,14 +31,14 @@ typedef struct { int mgl_texture_init(mgl_texture *self); /* |load_options| can be null, in which case the default options are used */ -int mgl_texture_load_from_file(mgl_texture *self, const char *filepath, mgl_texture_load_options *load_options); +int mgl_texture_load_from_file(mgl_texture *self, const char *filepath, const mgl_texture_load_options *load_options); /* |load_options| can be null, in which case the default options are used */ -int mgl_texture_load_from_image(mgl_texture *self, const mgl_image *image, mgl_texture_load_options *load_options); +int mgl_texture_load_from_image(mgl_texture *self, const mgl_image *image, const mgl_texture_load_options *load_options); /* |load_options| can be null, in which case the default options are used */ -int mgl_texture_load_from_memory(mgl_texture *self, const unsigned char *data, int width, int height, mgl_image_format format, mgl_texture_load_options *load_options); +int mgl_texture_load_from_memory(mgl_texture *self, const unsigned char *data, int width, int height, mgl_image_format format, const mgl_texture_load_options *load_options); int mgl_texture_update(mgl_texture *self, const unsigned char *data, int offset_x, int offset_y, int width, int height, mgl_image_format format); /* |load_options| can be null, in which case the default options are used */ -int mgl_texture_resize(mgl_texture *self, int new_width, int new_height, mgl_texture_load_options *load_options); +int mgl_texture_resize(mgl_texture *self, int new_width, int new_height, const mgl_texture_load_options *load_options); /* If |texture| is NULL then no texture is used */ void mgl_texture_use(const mgl_texture *texture); const mgl_texture* mgl_texture_current_texture(void); |