From 9e38d7cc2bcf6db0dc8377693e398e6f79f9b170 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 1 Apr 2015 13:34:18 -0700 Subject: Move Update to its own header file --- include/mbgl/map/map.hpp | 9 +-------- include/mbgl/map/update.hpp | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 include/mbgl/map/update.hpp (limited to 'include/mbgl/map') 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 #include +#include #include #include #include @@ -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 -- cgit v1.2.1