summaryrefslogtreecommitdiff
path: root/include/llmr/geometry/linevertexbuffer.hpp
blob: 8d5c6b335c3093efa2c00260436020a97e3f47b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef LLMR_GEOMETRY_LINEVERTEXBUFFER
#define LLMR_GEOMETRY_LINEVERTEXBUFFER

#include "../platform/gl.hpp"

#include <vector>

namespace llmr {

class linevertexbuffer {
public:
    linevertexbuffer();

    void addDegenerate();
    void addCoordinate(int16_t x, int16_t y);

    uint32_t length();
    void bind();
private:
    std::vector<uint16_t> array;
    GLuint buffer;
};

}

#endif