blob: 0d164d12676cbdd365c9e002d71774200c4de539 (
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/gl/attribute.hpp>
#include <array>
#include <cstdint>
namespace mbgl {
class PlainVertex {
public:
PlainVertex(int16_t x, int16_t y)
: a_pos { x, y } {}
const int16_t a_pos[2];
};
namespace gl {
template <class Shader>
struct AttributeBindings<Shader, PlainVertex> {
std::array<AttributeBinding, 1> operator()(const Shader& shader) {
return {{
MBGL_MAKE_ATTRIBUTE_BINDING(PlainVertex, shader, a_pos)
}};
};
};
} // namespace gl
} // namespace mbgl
|