hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_index_buffer.h
blob: 43a9d86a95f6a0aaa52912b47cbd99dad99683ce (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/index_buffer.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 get_count() const override { return m_count; }

    private:
        uint32_t m_renderer_id;
        uint32_t m_count;
    };
};