diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-01 13:34:18 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-02 15:30:13 -0700 |
commit | 9e38d7cc2bcf6db0dc8377693e398e6f79f9b170 (patch) | |
tree | fbdee0f480b3af761d28e7c9355c0a78e08f9344 /include | |
parent | 7f588409913beffaa00b033062a9d18b8b3a8341 (diff) | |
download | qtlocation-mapboxgl-9e38d7cc2bcf6db0dc8377693e398e6f79f9b170.tar.gz |
Move Update to its own header file
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 9 | ||||
-rw-r--r-- | include/mbgl/map/update.hpp | 18 |
2 files changed, 19 insertions, 8 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 83bb055214..436a07cb47 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -3,6 +3,7 @@ #include <mbgl/map/transform.hpp> #include <mbgl/util/chrono.hpp> +#include <mbgl/map/update.hpp> #include <mbgl/util/geo.hpp> #include <mbgl/util/projection.hpp> #include <mbgl/util/noncopyable.hpp> @@ -76,14 +77,6 @@ public: void render(); // Notifies the Map thread that the state has changed and an update might be necessary. - using UpdateType = uint32_t; - enum class Update : UpdateType { - Nothing = 0, - StyleInfo = 1 << 0, - Debug = 1 << 1, - DefaultTransitionDuration = 1 << 2, - Classes = 1 << 3, - }; void triggerUpdate(Update = Update::Nothing); // Triggers a render. Can be called from any thread. diff --git a/include/mbgl/map/update.hpp b/include/mbgl/map/update.hpp new file mode 100644 index 0000000000..3d02434c60 --- /dev/null +++ b/include/mbgl/map/update.hpp @@ -0,0 +1,18 @@ +#ifndef MBGL_MAP_UPDATE +#define MBGL_MAP_UPDATE + +namespace mbgl { + +using UpdateType = uint32_t; + +enum class Update : UpdateType { + Nothing = 0, + StyleInfo = 1 << 0, + Debug = 1 << 1, + DefaultTransitionDuration = 1 << 2, + Classes = 1 << 3, +}; + +} + +#endif |