summary refs log tree commit diff
path: root/src/Util/ImageViewer.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-07-29 03:31:42 +0200
committerMel <einebeere@gmail.com>2023-07-29 03:31:42 +0200
commit6b69d4b5b648253f894707723af0e2eae9f71445 (patch)
tree0cd0b6c7b18c30abbb2618f553f144d1d06dacba /src/Util/ImageViewer.hpp
parent2eef7cf49b7a15559ee7bb6719411bcf67386213 (diff)
downloadmeowcraft-6b69d4b5b648253f894707723af0e2eae9f71445.tar.zst
meowcraft-6b69d4b5b648253f894707723af0e2eae9f71445.zip
Move chunk reification to worker threads and set stage for chunk-unbound lighting
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;
 };