diff options
| author | hachem <im@hachem.wtf> | 2025-08-12 18:41:26 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-12 18:41:26 +0200 |
| commit | 8cf6858a6cd958f31521c4ce680cf2011bfb7cc3 (patch) | |
| tree | 56492ce9db686b719ec16f51b7a7078c41443899 /src/Platform/OpenGL/OpenGLRendererAPI.cpp | |
| parent | a2ec7dabd48a70ea69623406ddd0f8f97af403c8 (diff) | |
[add]: Camera
Diffstat (limited to 'src/Platform/OpenGL/OpenGLRendererAPI.cpp')
| -rw-r--r-- | src/Platform/OpenGL/OpenGLRendererAPI.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Platform/OpenGL/OpenGLRendererAPI.cpp b/src/Platform/OpenGL/OpenGLRendererAPI.cpp index c1c2e9b..3660555 100644 --- a/src/Platform/OpenGL/OpenGLRendererAPI.cpp +++ b/src/Platform/OpenGL/OpenGLRendererAPI.cpp @@ -25,6 +25,11 @@ namespace Donut glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } + void OpenGLRendererAPI::EnableDepthTest() + { + glEnable(GL_DEPTH_TEST); + } + void OpenGLRendererAPI::DrawIndexed(const std::shared_ptr<VertexArray>& vertexArray, uint32_t indexCount) { uint32_t count = indexCount ? indexCount : vertexArray->GetIndexBuffer()->GetCount(); |
