mirror of
https://github.com/MichaelFisher1997/opengl-cpp.git
synced 2025-04-28 06:33:09 +00:00
17 lines
296 B
C
17 lines
296 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; }
|
||
|
};
|