diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-05-31 15:15:12 +0200 |
---|---|---|
committer | Molly Lloyd <mollymerp@users.noreply.github.com> | 2018-08-31 13:08:47 -0700 |
commit | f97ba60da46445b15fcdea9bd6c1d7ceb63138e2 (patch) | |
tree | f91f02dab335ea49cf56711bcd32a2a249c27c39 /src/mbgl/gl/attribute.hpp | |
parent | abc5043339d1aa8eb25e449248ae5a95e00835a3 (diff) | |
download | qtlocation-mapboxgl-f97ba60da46445b15fcdea9bd6c1d7ceb63138e2.tar.gz |
[core] rename gl::Attribute to gl::Attribute to remove overloaded naming
Diffstat (limited to 'src/mbgl/gl/attribute.hpp')
-rw-r--r-- | src/mbgl/gl/attribute.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/gl/attribute.hpp b/src/mbgl/gl/attribute.hpp index 6bb38f6102..de95be0733 100644 --- a/src/mbgl/gl/attribute.hpp +++ b/src/mbgl/gl/attribute.hpp @@ -46,12 +46,12 @@ public: using AttributeBindingArray = std::vector<optional<AttributeBinding>>; /* - gl::Attribute<T,N> manages the binding of a vertex buffer to a GL program attribute. + gl::AttributeType<T,N> manages the binding of a vertex buffer to a GL program attribute. - T is the underlying primitive type (exposed as Attribute<T,N>::ValueType) - N is the number of components in the attribute declared in the shader (exposed as Attribute<T,N>::Dimensions) */ template <class T, std::size_t N> -class Attribute { +class AttributeType { public: using ValueType = T; static constexpr size_t Dimensions = N; @@ -96,7 +96,7 @@ public: #define MBGL_DEFINE_ATTRIBUTE(type_, n_, name_) \ struct name_ { \ static auto name() { return #name_; } \ - using Type = ::mbgl::gl::Attribute<type_, n_>; \ + using Type = ::mbgl::gl::AttributeType<type_, n_>; \ } namespace detail { |