summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/attribute.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-05-31 15:15:12 +0200
committerMolly Lloyd <mollymerp@users.noreply.github.com>2018-08-31 13:08:47 -0700
commitf97ba60da46445b15fcdea9bd6c1d7ceb63138e2 (patch)
treef91f02dab335ea49cf56711bcd32a2a249c27c39 /src/mbgl/gl/attribute.hpp
parentabc5043339d1aa8eb25e449248ae5a95e00835a3 (diff)
downloadqtlocation-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.hpp6
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 {