UltimateZoneBuilder/Source/Native/IndexBuffer.cpp

32 lines
526 B
C++
Raw Normal View History

2019-08-10 00:32:08 +00:00
#include "Precomp.h"
#include "IndexBuffer.h"
IndexBuffer::IndexBuffer()
{
}
IndexBuffer::~IndexBuffer()
{
// To do: move mBuffer to a delete list as this might be called by a finalizer in a different thread
}
GLuint IndexBuffer::GetBuffer()
{
if (mBuffer == 0)
glGenBuffers(1, &mBuffer);
return mBuffer;
}
/////////////////////////////////////////////////////////////////////////////
IndexBuffer* IndexBuffer_New()
{
return new IndexBuffer();
}
void IndexBuffer_Delete(IndexBuffer* buffer)
{
2019-08-17 01:08:34 +00:00
//delete buffer;
}