diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-05 15:37:01 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-06 16:12:51 +0100 |
commit | f13c2b86e427e29a856ca8f0f79379203c61f431 (patch) | |
tree | b41fd7ab9d8d9b0e20caa31c161df684a844a3ae /src/mbgl/gfx | |
parent | 2f646af255bf05bd50070deb83bb89e48509afc4 (diff) | |
download | qtlocation-mapboxgl-f13c2b86e427e29a856ca8f0f79379203c61f431.tar.gz |
[core] unify *Buffer/Vector naming
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r-- | src/mbgl/gfx/index_vector.hpp | 4 | ||||
-rw-r--r-- | src/mbgl/gfx/vertex_vector.hpp | 4 |
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); } |