diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 3 | ||||
-rw-r--r-- | include/mbgl/map/mode.hpp | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 9661bcc7bc..65f988b5bf 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -44,7 +44,8 @@ class Map : private util::noncopyable { public: explicit Map(View&, FileSource&, - MapMode mode = MapMode::Continuous); + MapMode mapMode = MapMode::Continuous, + GLContextMode contextMode = GLContextMode::Unique); ~Map(); // Pauses the render thread. The render thread will stop running but will not be terminated and will not lose state until resumed. diff --git a/include/mbgl/map/mode.hpp b/include/mbgl/map/mode.hpp index 4ade870d90..3e838dca99 100644 --- a/include/mbgl/map/mode.hpp +++ b/include/mbgl/map/mode.hpp @@ -10,6 +10,11 @@ enum class MapMode : uint8_t { Still, // a once-off still image }; -} +enum class GLContextMode : uint8_t { + Unique, + Shared, +}; + +} // namespace mbgl -#endif
\ No newline at end of file +#endif // MBGL_MAP_MODE |