diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-02-27 14:03:07 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-01 09:33:37 +0100 |
commit | 3f1d754369fe0a12f924c3dd47ad028c98b8e3b7 (patch) | |
tree | afaf6bdc08b3926afbac64322830611bc427c224 /src/mbgl/gl/attribute.hpp | |
parent | cd06b550dd95d6690daf0a34cd9733ae581ed5b9 (diff) | |
download | qtlocation-mapboxgl-3f1d754369fe0a12f924c3dd47ad028c98b8e3b7.tar.gz |
[core] rename gl::AttributeType to gl::Attribute to free up the name
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 c572ef7d47..a1c35f3746 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::AttributeType<T,N> manages the binding of a vertex buffer to a GL program attribute. + gl::Attribute<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 AttributeType { +class Attribute { 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::AttributeType<type_, n_>; \ + using Type = ::mbgl::gl::Attribute<type_, n_>; \ } namespace detail { |