diff options
Diffstat (limited to 'src/mbgl/shader/outline_shader.hpp')
-rw-r--r-- | src/mbgl/shader/outline_shader.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mbgl/shader/outline_shader.hpp b/src/mbgl/shader/outline_shader.hpp index 50e7a2dfc2..f9a3456864 100644 --- a/src/mbgl/shader/outline_shader.hpp +++ b/src/mbgl/shader/outline_shader.hpp @@ -1,23 +1,21 @@ #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 PlainVertex; class OutlineShader : public gl::Shader { public: OutlineShader(gl::Context&, Defines defines = None); - void bind(const gl::VertexBuffer<PlainVertex>&, - const int8_t* offset); + using VertexType = PlainVertex; + + gl::Attribute<int16_t, 2> a_pos = {"a_pos", *this}; gl::UniformMatrix<4> u_matrix = {"u_matrix", *this}; gl::Uniform<Color> u_outline_color = {"u_outline_color", *this}; |