diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-10-30 16:00:14 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-11-01 17:45:37 +0200 |
commit | 1262659b8da2a52ce1697372b97b086a61810651 (patch) | |
tree | 6bfa4a10ea9103b470f79f0adc87ca22bdc05182 /include/mbgl/renderer/mode.hpp | |
parent | 53e61fa71b3c2479ae16a0daa04a6e0abd9f9922 (diff) | |
download | qtlocation-mapboxgl-1262659b8da2a52ce1697372b97b086a61810651.tar.gz |
[core] Move GLContextMode to its own Renderer header
Diffstat (limited to 'include/mbgl/renderer/mode.hpp')
-rw-r--r-- | include/mbgl/renderer/mode.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mbgl/renderer/mode.hpp b/include/mbgl/renderer/mode.hpp new file mode 100644 index 0000000000..6ff42d8058 --- /dev/null +++ b/include/mbgl/renderer/mode.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <cstdint> + +namespace mbgl { + +using EnumType = uint32_t; + +// We can avoid redundant GL calls when it is known that the GL context is not +// being shared. In a shared GL context case, we need to make sure that the +// correct GL configurations are in use - they might have changed between render +// calls. +enum class GLContextMode : EnumType { + Unique, + Shared, +}; + +} // namespace mbgl |