Files
MapLibreParticleLab/src/mbgl/shader/circle_shader.cpp
Bruno de Oliveira Abinader 2038a21cb5 [core] s/GLObjectStore/ObjectStore/
2016-06-01 13:53:39 +03:00

18 lines
515 B
C++

#include <mbgl/shader/circle_shader.hpp>
#include <mbgl/shader/circle.vertex.hpp>
#include <mbgl/shader/circle.fragment.hpp>
#include <mbgl/gl/gl.hpp>
#include <cstdio>
using namespace mbgl;
CircleShader::CircleShader(gl::ObjectStore& store)
: Shader("circle", shaders::circle::vertex, shaders::circle::fragment, store) {
}
void CircleShader::bind(GLbyte* offset) {
MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos));
MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 4, offset));
}