summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/collision_box_vertex.cpp
blob: d12433ee7dbe4755d70757693b5640a1d7414ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <mbgl/shader/collision_box_vertex.hpp>
#include <mbgl/shader/shader.hpp>
#include <mbgl/gl/gl.hpp>

namespace mbgl {

void CollisionBoxVertex::bind(const int8_t* offset) {
    static_assert(sizeof(CollisionBoxVertex) == 10, "expected CollisionBoxVertex size");

    MBGL_BIND_VERTEX_ATTRIBUTE(CollisionBoxVertex, a_pos, offset);
    MBGL_BIND_VERTEX_ATTRIBUTE(CollisionBoxVertex, a_extrude, offset);
    MBGL_BIND_VERTEX_ATTRIBUTE(CollisionBoxVertex, a_data, offset);
}

} // namespace mbgl