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 | 7e06a916e6a385c37075abcb83d14b8c1fef7bc0 (patch) | |
| tree | 8054d96e89d43b0f98b75af726079d723a70ca2a /src/platform/opengl/opengl_renderer_api.cpp | |
| parent | 50cdd344a3ed87c75a67739e2ffd34762e9b0895 (diff) | |
feat: camera
Diffstat (limited to 'src/platform/opengl/opengl_renderer_api.cpp')
| -rw-r--r-- | src/platform/opengl/opengl_renderer_api.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/opengl/opengl_renderer_api.cpp b/src/platform/opengl/opengl_renderer_api.cpp index 9fb911a..49b4e53 100644 --- a/src/platform/opengl/opengl_renderer_api.cpp +++ b/src/platform/opengl/opengl_renderer_api.cpp @@ -25,6 +25,11 @@ namespace Donut glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } + void OpenGLRendererAPI::enable_depth_test() + { + glEnable(GL_DEPTH_TEST); + } + void OpenGLRendererAPI::draw_indexed(const std::shared_ptr<VertexArray>& vertex_array, uint32_t index_count) { uint32_t count = index_count ? index_count : vertex_array->get_index_buffer()->get_count(); |
