summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/static_vertex_buffer.hpp
blob: ce932269f0fc36e617773ef856225f9a30368304 (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 MBGL_GEOMETRY_STATIC_VERTEX_BUFFER
#define MBGL_GEOMETRY_STATIC_VERTEX_BUFFER

#include <mbgl/geometry/buffer.hpp>

#include <vector>
#include <cstddef>
#include <cstdint>
#include <cmath>

namespace mbgl {

class StaticVertexBuffer : public Buffer<
    4, // bytes per vertex (2 * signed short == 4 bytes)
    GL_ARRAY_BUFFER,
    32 // default length
> {
public:
    typedef int16_t vertex_type;

    StaticVertexBuffer(std::initializer_list<std::pair<int16_t, int16_t>> init);
};

}

#endif