diff options
| author | Mel <einebeere@gmail.com> | 2023-07-29 03:31:42 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-29 03:31:42 +0200 |
| commit | 6b69d4b5b648253f894707723af0e2eae9f71445 (patch) | |
| tree | 0cd0b6c7b18c30abbb2618f553f144d1d06dacba /src/main.cpp | |
| parent | 2eef7cf49b7a15559ee7bb6719411bcf67386213 (diff) | |
| download | meowcraft-6b69d4b5b648253f894707723af0e2eae9f71445.tar.zst meowcraft-6b69d4b5b648253f894707723af0e2eae9f71445.zip | |
Move chunk reification to worker threads and set stage for chunk-unbound lighting
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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); |
