summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/circle_shader.hpp
blob: 1c67fd02f3b105eb446b1e056d1f4893c8041041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mbgl/gl/shader.hpp>
#include <mbgl/gl/attribute.hpp>
#include <mbgl/shader/circle_uniforms.hpp>

namespace mbgl {

class CircleVertex;

class CircleShader : public gl::Shader {
public:
    CircleShader(gl::Context&, Defines defines = None);

    using VertexType = CircleVertex;
    using UniformsType = CircleUniforms;

    gl::Attribute<int16_t, 2> a_pos = {"a_pos", *this};

    typename CircleUniforms::State uniformsState;
};

} // namespace mbgl