diff options
Diffstat (limited to 'src/mbgl/shader/linesdf_shader.hpp')
-rw-r--r-- | src/mbgl/shader/linesdf_shader.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mbgl/shader/linesdf_shader.hpp b/src/mbgl/shader/linesdf_shader.hpp index 41ad8dc22a..d74e42e50f 100644 --- a/src/mbgl/shader/linesdf_shader.hpp +++ b/src/mbgl/shader/linesdf_shader.hpp @@ -1,23 +1,22 @@ #pragma once #include <mbgl/gl/shader.hpp> +#include <mbgl/gl/attribute.hpp> #include <mbgl/gl/uniform.hpp> #include <mbgl/util/color.hpp> namespace mbgl { -namespace gl { -template <class> class VertexBuffer; -} // namespace gl - class LineVertex; class LineSDFShader : public gl::Shader { public: LineSDFShader(gl::Context&, Defines defines = None); - void bind(const gl::VertexBuffer<LineVertex>&, - const int8_t* offset); + using VertexType = LineVertex; + + gl::Attribute<int16_t, 2> a_pos = { "a_pos", *this }; + gl::Attribute<uint8_t, 4> a_data = { "a_data", *this }; gl::UniformMatrix<4> u_matrix = {"u_matrix", *this}; gl::Uniform<Color> u_color = {"u_color", *this}; |