diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-06-11 11:07:28 -0400 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-07-08 19:45:59 +0200 |
commit | 7f705da5644092d48b48aaacbe3dc232ff5149fc (patch) | |
tree | ea5612d580d0cafe4144175505c55c379d8e7e7e /src/mbgl/geometry/sprite_atlas.hpp | |
parent | 03c4ed75a2684b9866a00eebf0392c96cceb8d34 (diff) | |
download | qtlocation-mapboxgl-7f705da5644092d48b48aaacbe3dc232ff5149fc.tar.gz |
Sprite store API
Diffstat (limited to 'src/mbgl/geometry/sprite_atlas.hpp')
-rw-r--r-- | src/mbgl/geometry/sprite_atlas.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/geometry/sprite_atlas.hpp b/src/mbgl/geometry/sprite_atlas.hpp index d34013cd6c..3da472fa72 100644 --- a/src/mbgl/geometry/sprite_atlas.hpp +++ b/src/mbgl/geometry/sprite_atlas.hpp @@ -46,8 +46,10 @@ public: // This getter attempts to read the image from the sprite if it is already loaded. // In that case, it copies it into the sprite atlas and returns the dimensions. // Otherwise, it returns a 0/0/0/0 rect. + // This function is used during bucket creation. Rect<dimension> getImage(const std::string& name, const bool wrap); + // This function is used for getting the position during render time. SpriteAtlasPosition getPosition(const std::string& name, bool repeating = false); // Binds the atlas texture to the GPU, and uploads data if it is out of date. |