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/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 1c6aa27..815de28 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,7 +6,6 @@ #include "Common/Sizes.hpp" #include "GFX/Window.hpp" #include "GFX/Camera.hpp" -#include "GFX/Binder.hpp" #include "Math/MVP.hpp" #include "GFX/Shading/Program.hpp" #include "GFX/Texture.hpp" @@ -23,7 +22,7 @@ #define FOV 90 void run(); -void render(const MC::GFX::BindableMesh&, const MC::GFX::Texture&); +void render(MC::GFX::Mesh&, MC::GFX::Texture&); void process_input(MC::GFX::Window&, MC::GFX::Camera&, MC::Time&); void setup_gl(); void fix_macos_render(const MC::GFX::Window&); @@ -135,7 +134,7 @@ void run() { } } -void render(const MC::GFX::BindableMesh& mesh, const MC::GFX::Texture& texture) { +void render(MC::GFX::Mesh& mesh, MC::GFX::Texture& texture) { texture.bind(); mesh.bind(); glDrawElements(GL_TRIANGLES, mesh.size(), GL_UNSIGNED_INT, nullptr); -- cgit 1.4.1