2022-05-28 11:32:17 +00:00
|
|
|
#pragma once
|
|
|
|
#include <glad/glad.h>
|
2022-07-08 19:35:14 +00:00
|
|
|
class GpuBuffer {
|
2022-05-28 11:32:17 +00:00
|
|
|
private:
|
|
|
|
unsigned int id;
|
|
|
|
public:
|
|
|
|
|
|
|
|
int getBufferID();
|
|
|
|
|
|
|
|
void createBuffer();
|
|
|
|
|
|
|
|
void setBufferData(void* data, size_t dataSize, bool elementBuffer );
|
|
|
|
|
|
|
|
void Bind(bool elementBuffer);
|
|
|
|
void Unbind(bool elementBuffer);
|
|
|
|
|
|
|
|
void Delete();
|
|
|
|
|
2022-05-04 13:27:42 +00:00
|
|
|
};
|