diff options
Diffstat (limited to 'src/mbgl/shader/texture_rect_vertex.cpp')
-rw-r--r-- | src/mbgl/shader/texture_rect_vertex.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mbgl/shader/texture_rect_vertex.cpp b/src/mbgl/shader/texture_rect_vertex.cpp new file mode 100644 index 0000000000..4693ada9e7 --- /dev/null +++ b/src/mbgl/shader/texture_rect_vertex.cpp @@ -0,0 +1,16 @@ +#include <mbgl/shader/texture_rect_vertex.hpp> +#include <mbgl/shader/shader.hpp> +#include <mbgl/gl/gl.hpp> + +namespace mbgl { + +void TextureRectVertex::bind(const int8_t* offset) { + static_assert(sizeof(TextureRectVertex) == 16, "expected TextureRectVertex size"); + + MBGL_BIND_VERTEX_ATTRIBUTE(TextureRectVertex, a_pos, offset); + MBGL_BIND_VERTEX_ATTRIBUTE(TextureRectVertex, a_offset, offset); + MBGL_BIND_VERTEX_ATTRIBUTE(TextureRectVertex, a_texture_pos, offset); + MBGL_BIND_VERTEX_ATTRIBUTE(TextureRectVertex, a_data, offset); +} + +} // namespace mbgl |