summaryrefslogtreecommitdiff
path: root/include/mbgl/map/mode.hpp
blob: 6ad9af5c742ff190cdc543c39ad7c0f3952f7964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MBGL_MAP_MODE
#define MBGL_MAP_MODE

#include <cstdint>

namespace mbgl {

enum class MapMode : uint8_t {
    Continuous, // continually updating map
    Still, // a once-off still image
};

// 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 : uint8_t {
    Unique,
    Shared,
};

} // namespace mbgl

#endif // MBGL_MAP_MODE