#include #include #include #include #include using namespace mbgl; DotShader::DotShader() : Shader("dot", shaders::dot::vertex, shaders::dot::fragment) { } void DotShader::bind(GLbyte* offset) { MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos)); MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 8, offset)); }