diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 18:21:00 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 18:21:00 +0200 |
| commit | bc2d88c799cb3913a5defe4ea9ddea9c56814349 (patch) | |
| tree | ea60d47c5924ba56f6d84de9d7baa38f1710f13a /src/Platform/OpenGL/OpenGLUniformBuffer.h | |
| parent | 5265d5f8cacdb8af523e2b2fbfa45f0ef44b9995 (diff) | |
[help]: I am going to throw my computer out a window
Diffstat (limited to 'src/Platform/OpenGL/OpenGLUniformBuffer.h')
| -rw-r--r-- | src/Platform/OpenGL/OpenGLUniformBuffer.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Platform/OpenGL/OpenGLUniformBuffer.h b/src/Platform/OpenGL/OpenGLUniformBuffer.h new file mode 100644 index 0000000..6e7fac1 --- /dev/null +++ b/src/Platform/OpenGL/OpenGLUniformBuffer.h @@ -0,0 +1,22 @@ +#pragma once + +#include "Rendering/UniformBuffer.h" +#include <glad/glad.h> + +namespace Donut +{ + class OpenGLUniformBuffer : public UniformBuffer + { + public: + OpenGLUniformBuffer(uint32_t size, uint32_t binding); + virtual ~OpenGLUniformBuffer(); + + virtual void SetData(const void* data, uint32_t size, uint32_t offset = 0) override; + virtual void Bind(uint32_t binding) override; + + private: + uint32_t m_RendererID = 0; + uint32_t m_Size = 0; + uint32_t m_Binding = 0; + }; +}; |
