summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/VertexBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/VertexBuffer.cpp')
-rw-r--r--Runtime/Graphics/VertexBuffer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Runtime/Graphics/VertexBuffer.cpp b/Runtime/Graphics/VertexBuffer.cpp
index 8423c2b..5d136ee 100644
--- a/Runtime/Graphics/VertexBuffer.cpp
+++ b/Runtime/Graphics/VertexBuffer.cpp
@@ -1,10 +1,14 @@
#include "VertexBuffer.h"
#include "../Profiling/FrameStats.h"
-VertexBuffer::VertexBuffer(VertexBufferType type)
+VertexBuffer::VertexBuffer(int vbSize, int ibSize, VertexBufferType type)
{
+ m_VB = GPU::ClaimBuffer(vbSize, GL_ARRAY_BUFFER);
+ m_IB = GPU::ClaimBuffer(ibSize, GL_ELEMENT_ARRAY_BUFFER);
}
VertexBuffer::~VertexBuffer()
{
+ GPU::ReleaseBuffer(m_VB);
+ GPU::ReleaseBuffer(m_IB);
}