summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/text_buffer.hpp
blob: 159f3207a8c4c60516e2918934e6c9c99153a719 (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
#ifndef MBGL_GEOMETRY_TEXT_BUFFER
#define MBGL_GEOMETRY_TEXT_BUFFER

#include "buffer.hpp"
#include <array>

namespace mbgl {

class TextVertexBuffer : public Buffer <
    16,
    GL_ARRAY_BUFFER,
    32768
> {
public:
    typedef int16_t vertex_type;

    static const double angleFactor;

    size_t add(int16_t x, int16_t y, float ox, float oy, uint16_t tx, uint16_t ty, float angle, float minzoom, std::array<float, 2> range, float maxzoom, float labelminzoom);
};


}

#endif