diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-07-02 17:44:32 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-07-08 19:46:01 +0200 |
commit | f9601ae68595e5bd2d7951d8ecf8e11117b2162c (patch) | |
tree | cb6efa3128e8c3d27d104b6c15cb7e3c44ea6854 /src/mbgl/geometry/sprite_atlas.hpp | |
parent | 70d0a26f98da50b348433a772cf02b025a70c5be (diff) | |
download | qtlocation-mapboxgl-f9601ae68595e5bd2d7951d8ecf8e11117b2162c.tar.gz |
add ability to set custom sprites on the Map object
Diffstat (limited to 'src/mbgl/geometry/sprite_atlas.hpp')
-rw-r--r-- | src/mbgl/geometry/sprite_atlas.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/geometry/sprite_atlas.hpp b/src/mbgl/geometry/sprite_atlas.hpp index c595d2ab76..e9653f6faa 100644 --- a/src/mbgl/geometry/sprite_atlas.hpp +++ b/src/mbgl/geometry/sprite_atlas.hpp @@ -54,6 +54,9 @@ public: // Binds the atlas texture to the GPU, and uploads data if it is out of date. void bind(bool linear = false); + // Updates sprites in the atlas texture that may have changed in the source SpriteStore object. + void updateDirty(); + // Uploads the texture to the GPU to be available when we need it. This is a lazy operation; // the texture is only bound when the data is out of date (=dirty). void upload(); |