diff options
Diffstat (limited to 'include/mglpp/graphics/Texture.hpp')
-rw-r--r-- | include/mglpp/graphics/Texture.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mglpp/graphics/Texture.hpp b/include/mglpp/graphics/Texture.hpp index 9559829..633d2cd 100644 --- a/include/mglpp/graphics/Texture.hpp +++ b/include/mglpp/graphics/Texture.hpp @@ -11,13 +11,18 @@ namespace mgl { class Image; class Texture { public: + struct LoadOptions { + bool compressed; + bool pixel_coordinates; + }; + Texture(); ~Texture(); static Texture reference(mgl_texture ref); - bool load_from_file(const char *filepath); - bool load_from_image(Image &image); + bool load_from_file(const char *filepath, const LoadOptions load_options = {false, false}); + bool load_from_image(Image &image, const LoadOptions load_options = {false, false}); vec2i get_size() const; bool is_valid() const; |