aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/IndexBuffer.h
blob: bb1b3a1a4fb87047f868385089e9b654d8c72397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "Core/Memory.h"
#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 Ref<IndexBuffer> Create(const uint32_t* indices, uint32_t count);
    };
};