diff options
Diffstat (limited to 'src/mbgl/shader/raster_vertex.hpp')
-rw-r--r-- | src/mbgl/shader/raster_vertex.hpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/mbgl/shader/raster_vertex.hpp b/src/mbgl/shader/raster_vertex.hpp deleted file mode 100644 index 70e08c609d..0000000000 --- a/src/mbgl/shader/raster_vertex.hpp +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#include <mbgl/gl/attribute.hpp> - -#include <array> -#include <cstdint> - -namespace mbgl { - -class RasterVertex { -public: - RasterVertex(int16_t x, int16_t y, uint16_t tx, uint16_t ty) - : a_pos { - x, - y - }, - a_texture_pos { - tx, - ty - } {} - - const int16_t a_pos[2]; - const uint16_t a_texture_pos[2]; -}; - -namespace gl { - -template <class Shader> -struct AttributeBindings<Shader, RasterVertex> { - std::array<AttributeBinding, 2> operator()(const Shader& shader) { - return {{ - MBGL_MAKE_ATTRIBUTE_BINDING(RasterVertex, shader, a_pos), - MBGL_MAKE_ATTRIBUTE_BINDING(RasterVertex, shader, a_texture_pos) - }}; - }; -}; - -} // namespace gl -} // namespace mbgl |