blob: 0af8558587f6f48b4f6a158d4d1888f1add142e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <mbgl/shader/outlinepattern_shader.hpp>
#include <mbgl/shader/outlinepattern.vertex.hpp>
#include <mbgl/shader/outlinepattern.fragment.hpp>
#include <mbgl/gl/gl.hpp>
using namespace mbgl;
using namespace shaders::outlinepattern;
OutlinePatternShader::OutlinePatternShader(gl::ObjectStore& store)
: Shader(::name, ::vertex, ::fragment, store) {
}
void OutlinePatternShader::bind(GLbyte *offset) {
MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos));
MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 0, offset));
}
|