aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/OpenGL/OpenGLIndexBuffer.h
blob: 0de8fb2ddf194dac9bc9fe60883d7e3df5de16d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "Rendering/IndexBuffer.h"

namespace Donut
{
    class OpenGLIndexBuffer
        : public IndexBuffer 
    {
    public:
        OpenGLIndexBuffer(const uint32_t* indices, uint32_t count);
        virtual ~OpenGLIndexBuffer();

        virtual void Bind() const override;
        virtual void Unbind() const override;
        virtual uint32_t GetCount() const override { return m_Count; }

    private:
        uint32_t m_RendererID;
        uint32_t m_Count;
    };
};