17 lines
461 B
C++
17 lines
461 B
C++
#include <mbgl/shader/dot_shader.hpp>
|
|
#include <mbgl/shader/dot.vertex.hpp>
|
|
#include <mbgl/shader/dot.fragment.hpp>
|
|
#include <mbgl/platform/gl.hpp>
|
|
|
|
#include <cstdio>
|
|
|
|
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));
|
|
}
|