aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/OpenGL/OpenGLVertexArray.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
commite050dce79b67ae6386240567a994454711ab998d (patch)
tree4b5f55471d86b8ee80d531696e65dcea3b713e7a /src/Platform/OpenGL/OpenGLVertexArray.cpp
parent2e246683df3b18e8e129adb0ada25be5f82f5b59 (diff)
[add]: Custom memory managers and fix includes
Diffstat (limited to 'src/Platform/OpenGL/OpenGLVertexArray.cpp')
-rw-r--r--src/Platform/OpenGL/OpenGLVertexArray.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Platform/OpenGL/OpenGLVertexArray.cpp b/src/Platform/OpenGL/OpenGLVertexArray.cpp
index c24441e..6019287 100644
--- a/src/Platform/OpenGL/OpenGLVertexArray.cpp
+++ b/src/Platform/OpenGL/OpenGLVertexArray.cpp
@@ -1,4 +1,5 @@
#include <glad/glad.h>
+
#include "OpenGLVertexArray.h"
#include "Rendering/VertexBuffer.h"
#include "Rendering/IndexBuffer.h"
@@ -25,7 +26,7 @@ namespace Donut
glBindVertexArray(0);
}
- void OpenGLVertexArray::AddVertexBuffer(const std::shared_ptr<VertexBuffer>& vertexBuffer)
+ void OpenGLVertexArray::AddVertexBuffer(const Ref<VertexBuffer>& vertexBuffer)
{
glBindVertexArray(m_RendererID);
vertexBuffer->Bind();
@@ -46,7 +47,7 @@ namespace Donut
m_VertexBuffers.push_back(vertexBuffer);
}
- void OpenGLVertexArray::SetIndexBuffer(const std::shared_ptr<IndexBuffer>& indexBuffer)
+ void OpenGLVertexArray::SetIndexBuffer(const Ref<IndexBuffer>& indexBuffer)
{
glBindVertexArray(m_RendererID);
indexBuffer->Bind();