diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-19 20:25:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-19 20:25:07 +0200 |
commit | 17254ca13ce7985e87a413df1d8546779734f05e (patch) | |
tree | f32750de0d1a1922b29df912e3fbdc2d63ccb6d3 /include | |
parent | 954a4e72071da0e121c427d821e5009951d5ce13 (diff) |
Implement c++ version of mgl_texture_init_reference_existing_gl_texture
Diffstat (limited to 'include')
-rw-r--r-- | include/mglpp/graphics/Texture.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Texture.hpp b/include/mglpp/graphics/Texture.hpp index 8bd2df6..1ea040e 100644 --- a/include/mglpp/graphics/Texture.hpp +++ b/include/mglpp/graphics/Texture.hpp @@ -17,7 +17,12 @@ namespace mgl { bool mipmap = false; /* available since opengl 3.0 */ }; + struct ReferenceOptions { + bool pixel_coordinates = false; + }; + Texture(); + Texture(unsigned int gl_texture_id, mgl_texture_format format, const ReferenceOptions reference_options = {false}); Texture(Texture &&other); Texture& operator=(Texture &&other); ~Texture(); |