hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_vertex_array.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 02:19:29 +0200
committerhachem <im@hachem.wtf>2026-08-20 02:32:34 +0200
commit31f6a54d35dd13f0911f132dc60f5f0d851d7e43 (patch)
tree75b5410d785a5acc9e435d4147f3de4989278172 /src/platform/opengl/opengl_vertex_array.cpp
parent0f9483ce025b015b1197b7a7efc8ed983bedbb8e (diff)
refactor: trailing return types in the OpenGL and Metal backends
Diffstat (limited to 'src/platform/opengl/opengl_vertex_array.cpp')
-rw-r--r--src/platform/opengl/opengl_vertex_array.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/platform/opengl/opengl_vertex_array.cpp b/src/platform/opengl/opengl_vertex_array.cpp
index f3347f4..a627224 100644
--- a/src/platform/opengl/opengl_vertex_array.cpp
+++ b/src/platform/opengl/opengl_vertex_array.cpp
@@ -16,17 +16,17 @@ namespace Donut
glDeleteVertexArrays(1, &m_renderer_id);
}
- void OpenGLVertexArray::bind() const
+ auto OpenGLVertexArray::bind() const -> void
{
glBindVertexArray(m_renderer_id);
}
- void OpenGLVertexArray::unbind() const
+ auto OpenGLVertexArray::unbind() const -> void
{
glBindVertexArray(0);
}
- void OpenGLVertexArray::add_vertex_buffer(const Ref<VertexBuffer>& vertex_buffer)
+ auto OpenGLVertexArray::add_vertex_buffer(const Ref<VertexBuffer>& vertex_buffer) -> void
{
glBindVertexArray(m_renderer_id);
vertex_buffer->bind();
@@ -47,7 +47,7 @@ namespace Donut
m_vertex_buffers.push_back(vertex_buffer);
}
- void OpenGLVertexArray::set_index_buffer(const Ref<IndexBuffer>& index_buffer)
+ auto OpenGLVertexArray::set_index_buffer(const Ref<IndexBuffer>& index_buffer) -> void
{
glBindVertexArray(m_renderer_id);
index_buffer->bind();