summaryrefslogtreecommitdiff
path: root/include/mbgl/util/constants.hpp
blob: fef68fcf8c738666971f9334406de568e2887e22 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef MBGL_UTIL_CONSTANTS
#define MBGL_UTIL_CONSTANTS

#include <mbgl/util/chrono.hpp>

#include <cmath>
#include <string>
#include <vector>

namespace mbgl {

namespace util {

extern const float tileSize;
extern const int32_t EXTENT;

extern const double DEG2RAD;
extern const double RAD2DEG;
extern const double M2PI;
extern const double EARTH_RADIUS_M;
extern const double LATITUDE_MAX;
extern const double PITCH_MAX;
extern const double MIN_ZOOM;
extern const double MAX_ZOOM;

extern const uint64_t DEFAULT_MAX_CACHE_SIZE;

extern const SystemDuration CLOCK_SKEW_RETRY_TIMEOUT;

} // namespace util

namespace debug {

extern const bool tileParseWarnings;
extern const bool styleParseWarnings;
extern const bool spriteWarnings;
extern const bool renderWarnings;
extern const bool renderTree;
extern const bool labelTextMissingWarning;
extern const bool missingFontStackWarning;
extern const bool missingFontFaceWarning;
extern const bool glyphWarning;
extern const bool shapingWarning;

} // namespace debug

} // namespace mbgl

#endif