summaryrefslogtreecommitdiff
path: root/engine-ocean/Graphics/GLWrappers/vbo.h
blob: bd63877f8cd7caeb316af42f37e8767d1819e357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
};