diff options
| author | Mel <einebeere@gmail.com> | 2023-07-08 03:25:44 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-08 03:25:44 +0200 |
| commit | fe2baedc760c2f29e2c720f6b1132a2de33c5430 (patch) | |
| tree | dfbe1c72a17805a3cab6e0d47433e9021890c9ca /src/Util/ImageViewer.hpp | |
| parent | 41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 (diff) | |
| download | meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.tar.zst meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.zip | |
Use own size types
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 16ef2dd..1e18103 100644 --- a/src/Util/ImageViewer.hpp +++ b/src/Util/ImageViewer.hpp @@ -10,16 +10,16 @@ namespace MC::Util { class ImageViewer { public: - explicit ImageViewer(const GFX::Image::RawImage& image, float window_aspect); + explicit ImageViewer(const GFX::Image::RawImage& image, Real window_aspect); void render() const; private: - static GFX::Mesh create_mesh(float window_aspect, uint32_t image_width, uint32_t image_height); + static GFX::Mesh create_mesh(Real window_aspect, U32 image_width, U32 image_height); - static constexpr float view_size = 1000.0f; + static constexpr Real view_size = 1000.0f; - static const char* vertex; - static const char* fragment; + static const Char* vertex; + static const Char* fragment; GFX::BindableMesh m_mesh; GFX::Shading::Program m_program; |
