blob: 397da43a8feeb6a445979fa6ad212af751fd1968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "rendering/index_buffer.h"
namespace Donut
{
class OpenGLIndexBuffer
: public IndexBuffer
{
public:
OpenGLIndexBuffer(const uint32_t* indices, uint32_t count);
virtual ~OpenGLIndexBuffer();
virtual auto bind() const -> void override;
virtual auto unbind() const -> void override;
virtual auto get_count() const -> uint32_t override{ return m_count; }
private:
uint32_t m_renderer_id;
uint32_t m_count;
};
};
|