2024-08-22 16:04:15 +00:00
|
|
|
#pragma once
|
2024-08-01 23:32:51 +00:00
|
|
|
|
|
|
|
#include <glad/glad.h>
|
|
|
|
|
|
|
|
class VertexBuffer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VertexBuffer();
|
|
|
|
~VertexBuffer();
|
|
|
|
|
|
|
|
static VertexBuffer Create();
|
|
|
|
|
|
|
|
void Bind() const;
|
|
|
|
static void Unbind();
|
|
|
|
void SetData(int size, const void* data) const;
|
|
|
|
void Shutdown() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
unsigned int m_VBO{};
|
2024-08-22 16:04:15 +00:00
|
|
|
};
|