From 31f6a54d35dd13f0911f132dc60f5f0d851d7e43 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 02:19:29 +0200 Subject: refactor: trailing return types in the OpenGL and Metal backends --- src/platform/opengl/opengl_vertex_array.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/platform/opengl/opengl_vertex_array.cpp') 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& vertex_buffer) + auto OpenGLVertexArray::add_vertex_buffer(const Ref& 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& index_buffer) + auto OpenGLVertexArray::set_index_buffer(const Ref& index_buffer) -> void { glBindVertexArray(m_renderer_id); index_buffer->bind(); -- cgit v1.3