18 glNamedBufferData(
m_RendererID, uiCount *
sizeof(
unsigned int), data, GL_STATIC_DRAW);
27 void Unbind()
const { glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); }
Definition IndexBuffer.h:6
IndexBuffer & operator=(const IndexBuffer &)=delete
unsigned int m_uiCount
Definition IndexBuffer.h:9
unsigned int GetCount() const
Definition IndexBuffer.h:29
unsigned int m_RendererID
Definition IndexBuffer.h:8
void Bind() const
Definition IndexBuffer.h:26
void Unbind() const
Definition IndexBuffer.h:27
IndexBuffer(const IndexBuffer &)=delete
~IndexBuffer()
Definition IndexBuffer.h:21
IndexBuffer(unsigned int *data, unsigned int uiCount)
Creates and fills the index buffer.
Definition IndexBuffer.h:16