diff options
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); |
