NoJobEngine 2.0.7
Loading...
Searching...
No Matches
OpenGLBuffer.h
Go to the documentation of this file.
1
6#pragma once
8
9namespace NoJob
10{
11 class OpenGLVertexBuffer final : public VertexBuffer
12 {
13 public:
14 OpenGLVertexBuffer(const float* vertices, std::uint32_t size);
15 ~OpenGLVertexBuffer() override;
16
17 void Bind() const override;
18 void Unbind() const override;
19
20 private:
21 std::uint32_t m_RendererID = 0;
22 };
23
24 class OpenGLIndexBuffer final : public IndexBuffer
25 {
26 public:
28 const std::uint32_t* indices,
29 std::uint32_t count);
30 ~OpenGLIndexBuffer() override;
31
32 void Bind() const override;
33 void Unbind() const override;
34 std::uint32_t GetCount() const override { return m_Count; }
35
36 private:
37 std::uint32_t m_RendererID = 0;
38 std::uint32_t m_Count = 0;
39 };
40}
Buffer declarations for the Rendering subsystem.
void Bind() const override
std::uint32_t GetCount() const override
void Unbind() const override
OpenGLIndexBuffer(const std::uint32_t *indices, std::uint32_t count)
void Unbind() const override
OpenGLVertexBuffer(const float *vertices, std::uint32_t size)
void Bind() const override