diff options
Diffstat (limited to 'src/mbgl/shader/raster_attributes.hpp')
-rw-r--r-- | src/mbgl/shader/raster_attributes.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mbgl/shader/raster_attributes.hpp b/src/mbgl/shader/raster_attributes.hpp deleted file mode 100644 index 88f0125754..0000000000 --- a/src/mbgl/shader/raster_attributes.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include <mbgl/shader/attributes.hpp> -#include <mbgl/util/geometry.hpp> - -namespace mbgl { - -struct RasterAttributes : gl::Attributes< - attributes::a_pos, - attributes::a_texture_pos> -{ - static Vertex vertex(Point<int16_t> p, Point<uint16_t> t) { - return Vertex { - { - p.x, - p.y - }, - { - t.x, - t.y - } - }; - } -}; - -using RasterVertex = RasterAttributes::Vertex; -static_assert(sizeof(RasterVertex) == 8, "expected RasterVertex size"); - -} // namespace mbgl |