aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/IndexBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Rendering/IndexBuffer.h')
-rw-r--r--src/Rendering/IndexBuffer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Rendering/IndexBuffer.h b/src/Rendering/IndexBuffer.h
new file mode 100644
index 0000000..0729d95
--- /dev/null
+++ b/src/Rendering/IndexBuffer.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <cstdint>
+
+namespace Donut
+{
+ class IndexBuffer
+ {
+ public:
+ virtual ~IndexBuffer() = default;
+
+ virtual void Bind() const = 0;
+ virtual void Unbind() const = 0;
+ virtual uint32_t GetCount() const = 0;
+
+ static IndexBuffer* Create(const uint32_t* indices, uint32_t count);
+ };
+};