summary refs log tree commit diff
path: root/src/Util/ImageViewer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/ImageViewer.hpp')
-rw-r--r--src/Util/ImageViewer.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Util/ImageViewer.hpp b/src/Util/ImageViewer.hpp
index 1e18103..aa48b1e 100644
--- a/src/Util/ImageViewer.hpp
+++ b/src/Util/ImageViewer.hpp
@@ -1,8 +1,7 @@
 #pragma once
 
-#include <ostream>
+#include "../GFX/Mesh.hpp"
 #include "../GFX/Image/RawImage.hpp"
-#include "../GFX/Binder.hpp"
 #include "../GFX/Texture.hpp"
 #include "../GFX/Shading/Program.hpp"
 
@@ -12,7 +11,7 @@ class ImageViewer {
 public:
     explicit ImageViewer(const GFX::Image::RawImage& image, Real window_aspect);
 
-    void render() const;
+    void render();
 private:
     static GFX::Mesh create_mesh(Real window_aspect, U32 image_width, U32 image_height);
 
@@ -21,7 +20,7 @@ private:
     static const Char* vertex;
     static const Char* fragment;
 
-    GFX::BindableMesh m_mesh;
+    GFX::Mesh m_mesh;
     GFX::Shading::Program m_program;
     GFX::Texture m_texture;
 };