diff options
| author | Mel <einebeere@gmail.com> | 2023-07-07 23:05:14 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-07 23:14:59 +0200 |
| commit | 129f2e421e16bd008cdca8713cc91f67d103d94e (patch) | |
| tree | a4d3e1005c57591b44fd57be4c1b00441512e36d /src/Util/ImageViewer.hpp | |
| parent | f1fc192ddc4c739fa8b4b376c759b7d3218a34eb (diff) | |
| download | meowcraft-129f2e421e16bd008cdca8713cc91f67d103d94e.tar.zst meowcraft-129f2e421e16bd008cdca8713cc91f67d103d94e.zip | |
Fix minor quality issues
Diffstat (limited to 'src/Util/ImageViewer.hpp')
| -rw-r--r-- | src/Util/ImageViewer.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Util/ImageViewer.hpp b/src/Util/ImageViewer.hpp index 2e4efe3..59c0bf3 100644 --- a/src/Util/ImageViewer.hpp +++ b/src/Util/ImageViewer.hpp @@ -10,18 +10,18 @@ namespace MC::Util { class ImageViewer { public: - explicit ImageViewer(GFX::Image::RawImage& image, float window_aspect); + explicit ImageViewer(const GFX::Image::RawImage& image, float window_aspect); - void render(); + void render() const; private: static GFX::Mesh create_mesh(float window_aspect, uint32_t image_width, uint32_t image_height); static const char* vertex; static const char* fragment; - MC::GFX::BindableMesh m_mesh; - MC::GFX::Shading::Program m_program; - MC::GFX::Texture m_texture; + GFX::BindableMesh m_mesh; + GFX::Shading::Program m_program; + GFX::Texture m_texture; }; } \ No newline at end of file |
