aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/index_buffer.h
blob: 8389f2db52199801a90a2758f58c0607a1264387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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*;
    };
};