aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/IndexBuffer.h
blob: 0729d95f4bb697cabf413fdf045e8066b67ed7ae (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 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);
    };
};