blob: 79f6117cbced8145159ecbfb156f3fff66969112 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#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);
};
} // namespace mbgl
|