blob: 2e738afc98595f8a8244c9db327601e7bd6df48c (
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
27
28
29
30
|
#pragma once
#include <mbgl/geometry/buffer.hpp>
#include <array>
#include <cstdint>
namespace mbgl {
class StaticVertexBuffer : public Buffer<
4, // bytes per vertex (2 * signed short == 4 bytes)
GL_ARRAY_BUFFER,
32 // default length
> {
public:
using VertexType = int16_t;
StaticVertexBuffer(std::initializer_list<std::array<VertexType, 2>>);
};
class StaticRasterVertexBuffer : public Buffer<
8, // bytes per vertex (4 * signed short == 8 bytes)
GL_ARRAY_BUFFER,
32 // default length
> {
public:
using VertexType = int16_t;
StaticRasterVertexBuffer(std::initializer_list<std::array<VertexType, 4>>);
};
} // namespace mbgl
|