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