summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/debug_program.hpp
blob: cd4e08b1bcefcdf47883953652023d069bd8a7b9 (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
#pragma once

#include <mbgl/programs/program.hpp>
#include <mbgl/programs/attributes.hpp>
#include <mbgl/programs/uniforms.hpp>
#include <mbgl/shader/debug.hpp>

namespace mbgl {

using DebugAttributes = gl::Attributes<
    attributes::a_pos>;

class DebugProgram : public Program<
    shaders::debug,
    gl::Line,
    DebugAttributes,
    gl::Uniforms<
        uniforms::u_matrix,
        uniforms::u_color>>
{
public:
    using Program::Program;
};

using DebugVertex = DebugProgram::Vertex;

} // namespace mbgl