opengl-cpp/src/IndexBuffer.h

17 lines
296 B
C
Raw Normal View History

2025-01-11 17:48:48 +00:00
#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; }
};