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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platform/opengl/opengl_vertex_array.cpp b/src/platform/opengl/opengl_vertex_array.cpp
index c57479b..e2fb766 100644
--- a/src/platform/opengl/opengl_vertex_array.cpp
+++ b/src/platform/opengl/opengl_vertex_array.cpp
@@ -1,4 +1,5 @@
#include <glad/glad.h>
+
#include "opengl_vertex_array.h"
#include "rendering/vertex_buffer.h"
#include "rendering/index_buffer.h"
@@ -25,7 +26,7 @@ namespace Donut
glBindVertexArray(0);
}
- void OpenGLVertexArray::add_vertex_buffer(const std::shared_ptr<VertexBuffer>& vertex_buffer)
+ void OpenGLVertexArray::add_vertex_buffer(const Ref<VertexBuffer>& vertex_buffer)
{
glBindVertexArray(m_renderer_id);
vertex_buffer->bind();
@@ -46,7 +47,7 @@ namespace Donut
m_vertex_buffers.push_back(vertex_buffer);
}
- void OpenGLVertexArray::set_index_buffer(const std::shared_ptr<IndexBuffer>& index_buffer)
+ void OpenGLVertexArray::set_index_buffer(const Ref<IndexBuffer>& index_buffer)
{
glBindVertexArray(m_renderer_id);
index_buffer->bind();