mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
36 lines
543 B
C++
36 lines
543 B
C++
|
|
#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;
|
|
}
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
extern "C"
|
|
{
|
|
|
|
IndexBuffer* IndexBuffer_New()
|
|
{
|
|
return new IndexBuffer();
|
|
}
|
|
|
|
void IndexBuffer_Delete(IndexBuffer* buffer)
|
|
{
|
|
//delete buffer;
|
|
}
|
|
|
|
}
|