summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/circle_shader.cpp
blob: 0af5bcf60494a6b46d43970fbf5338cfde571678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <mbgl/shader/circle_shader.hpp>
#include <mbgl/shader/circle.vertex.hpp>
#include <mbgl/shader/circle.fragment.hpp>
#include <mbgl/platform/gl.hpp>

#include <cstdio>

using namespace mbgl;

CircleShader::CircleShader()
    : Shader("circle", shaders::circle::vertex, shaders::circle::fragment) {
}

void CircleShader::bind(GLbyte* offset) {
    MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos));
    MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 4, offset));
}