Files
MapLibreParticleLab/src/mbgl/shader/outline_shader.cpp
2016-09-29 10:17:47 -07:00

21 lines
599 B
C++

#include <mbgl/shader/outline_shader.hpp>
#include <mbgl/shader/outline.vertex.hpp>
#include <mbgl/shader/outline.fragment.hpp>
#include <mbgl/gl/gl.hpp>
namespace mbgl {
OutlineShader::OutlineShader(gl::Context& context, Defines defines)
: Shader(shaders::outline::name,
shaders::outline::vertex,
shaders::outline::fragment,
context, defines) {
}
void OutlineShader::bind(int8_t* offset) {
MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos));
MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 0, offset));
}
} // namespace mbgl