summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/gl/clipping_mask.cpp
blob: 311877f06596f3ee00fea407f9040f89f989bc48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.

#include <mbgl/programs/clipping_mask_program.hpp>
#include <mbgl/programs/gl/shader_source.hpp>
#include <mbgl/gl/program.hpp>

namespace mbgl {
namespace gfx {

template <>
std::unique_ptr<Program<ClippingMaskProgram>>
Context::createProgram<gl::Context>(const ProgramParameters& programParameters) {
    return gl::Program<ClippingMaskProgram>::createProgram(
        reinterpret_cast<gl::Context&>(*this), programParameters, "clipping_mask",
        programs::gl::shaderSource() + 7848, programs::gl::shaderSource() + 7944);
}

} // namespace gfx
} // namespace mbgl

// Uncompressed source of clipping_mask.vertex.glsl:
/*
attribute vec2 a_pos;

uniform mat4 u_matrix;

void main() {
    gl_Position = u_matrix * vec4(a_pos, 0, 1);
}

*/

// Uncompressed source of clipping_mask.fragment.glsl:
/*
void main() {
    gl_FragColor = vec4(1.0);
}

*/