summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-05 15:37:01 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-06 16:12:51 +0100
commitf13c2b86e427e29a856ca8f0f79379203c61f431 (patch)
treeb41fd7ab9d8d9b0e20caa31c161df684a844a3ae /src/mbgl/gfx
parent2f646af255bf05bd50070deb83bb89e48509afc4 (diff)
downloadqtlocation-mapboxgl-f13c2b86e427e29a856ca8f0f79379203c61f431.tar.gz
[core] unify *Buffer/Vector naming
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r--src/mbgl/gfx/index_vector.hpp4
-rw-r--r--src/mbgl/gfx/vertex_vector.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/gfx/index_vector.hpp b/src/mbgl/gfx/index_vector.hpp
index b477c29782..dc760feb90 100644
--- a/src/mbgl/gfx/index_vector.hpp
+++ b/src/mbgl/gfx/index_vector.hpp
@@ -18,11 +18,11 @@ public:
util::ignore({ (v.emplace_back(std::forward<Args>(args)), 0)... });
}
- std::size_t indexSize() const {
+ std::size_t elements() const {
return v.size();
}
- std::size_t byteSize() const {
+ std::size_t bytes() const {
return v.size() * sizeof(uint16_t);
}
diff --git a/src/mbgl/gfx/vertex_vector.hpp b/src/mbgl/gfx/vertex_vector.hpp
index 5d892e9136..f41f842294 100644
--- a/src/mbgl/gfx/vertex_vector.hpp
+++ b/src/mbgl/gfx/vertex_vector.hpp
@@ -18,11 +18,11 @@ public:
util::ignore({ (v.emplace_back(std::forward<Args>(args)), 0)... });
}
- std::size_t vertexSize() const {
+ std::size_t elements() const {
return v.size();
}
- std::size_t byteSize() const {
+ std::size_t bytes() const {
return v.size() * sizeof(Vertex);
}