summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/icon_buffer.hpp
blob: 346b3b5f0616c4d98609907a9dc9b46311e3530f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MBGL_GEOMETRY_ICON_BUFFER
#define MBGL_GEOMETRY_ICON_BUFFER

#include "buffer.hpp"

namespace mbgl {

    class IconVertexBuffer : public Buffer<
    4 + // int16 x/y coordinates per vertex (== 4 bytes)
    4   // uint16 x/y coordinates of icon in sprite (== 4 bytes)
    > {
    public:
        typedef int16_t vertex_type;

        void add(vertex_type x, vertex_type y, uint16_t tx, uint16_t ty);
    };

}

#endif