mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 06:34:14 +00:00
23 lines
268 B
C++
Executable File
23 lines
268 B
C++
Executable File
#ifndef VBO_HPP
|
|
#define VBO_HPP
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "glad/glad.h"
|
|
|
|
class VBO
|
|
{
|
|
private:
|
|
unsigned int id;
|
|
|
|
public:
|
|
VBO();
|
|
~VBO();
|
|
|
|
void setData(const GLfloat* vertices, size_t size);
|
|
|
|
void bind();
|
|
void unbind();
|
|
};
|
|
|
|
#endif |