From 6b69d4b5b648253f894707723af0e2eae9f71445 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 29 Jul 2023 03:31:42 +0200 Subject: Move chunk reification to worker threads and set stage for chunk-unbound lighting --- src/Util/ImageViewer.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Util/ImageViewer.hpp') 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 +#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; }; -- cgit 1.4.1