diff options
Diffstat (limited to 'src/mbgl/shader/raster_vertex.hpp')
-rw-r--r-- | src/mbgl/shader/raster_vertex.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/shader/raster_vertex.hpp b/src/mbgl/shader/raster_vertex.hpp new file mode 100644 index 0000000000..b983010d3d --- /dev/null +++ b/src/mbgl/shader/raster_vertex.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include <cstdint> + +namespace mbgl { + +class RasterVertex { +public: + RasterVertex(int16_t x, int16_t y, int16_t tx, int16_t ty) + : a_pos { + x, + y + }, + a_texture_pos { + tx, + ty + } {} + + const int16_t a_pos[2]; + const int16_t a_texture_pos[2]; + + static void bind(const int8_t* offset); +}; + +} // namespace mbgl |