16 lines
291 B
C++
16 lines
291 B
C++
#pragma once
|
|
|
|
class IndexBuffer
|
|
{
|
|
private:
|
|
unsigned int m_RendererID;
|
|
unsigned int m_Count;
|
|
|
|
public:
|
|
IndexBuffer(const unsigned int *data, unsigned int count);
|
|
~IndexBuffer();
|
|
|
|
void Bind() const;
|
|
void Unbind() const;
|
|
inline unsigned int GetCount() const { return m_Count; }
|
|
};
|