diff options
Diffstat (limited to 'engine-ocean/Graphics/GLWrappers/vbo.h')
-rw-r--r-- | engine-ocean/Graphics/GLWrappers/vbo.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engine-ocean/Graphics/GLWrappers/vbo.h b/engine-ocean/Graphics/GLWrappers/vbo.h new file mode 100644 index 0000000..bd63877 --- /dev/null +++ b/engine-ocean/Graphics/GLWrappers/vbo.h @@ -0,0 +1,19 @@ +#pragma once + +#include <GL/glew.h> +#include <vector> + +class VBO +{ +public: + VBO(std::vector<float> data); + ~VBO(); + + void bind(); + void unbind(); + GLsizei getLength(); + +private: + GLuint m_handle; + GLsizei m_length; +};
\ No newline at end of file |