hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_vertex_array.cpp
diff options
context:
space:
mode:
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();