summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-04 11:22:03 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-04 11:22:03 +0200
commitaf69b4fe3918d34092f65c3038a3eb3f3690488f (patch)
treec5a65578c10f8d845df8f6ef0841b71b6192abdc /config
parent580527a16c22fe41df8368492193980acc979b5a (diff)
downloadqtlocation-mapboxgl-af69b4fe3918d34092f65c3038a3eb3f3690488f.tar.gz
unifiy constants in one place, and allow local override
Diffstat (limited to 'config')
-rw-r--r--config/constants.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/config/constants.cpp b/config/constants.cpp
new file mode 100644
index 0000000000..ab0c160a8a
--- /dev/null
+++ b/config/constants.cpp
@@ -0,0 +1,31 @@
+#include <llmr/util/constants.hpp>
+
+const char *llmr::kSpriteURL = "http://mapbox-kkaefer.s3.amazonaws.com/static/outdoors-gl/sprite";
+const char *llmr::kVectorTileURL = "http://a.tiles.mapbox.com/v3/mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5/%d/%d/%d.vector.pbf";
+const char *llmr::kGlyphURL = "http://mapbox.s3.amazonaws.com/gl-glyphs-256/%s/%d-%d.pbf";
+
+const float llmr::util::tileSize = 512.0f;
+
+#if defined(DEBUG)
+const bool llmr::debug::tileParseWarnings = false;
+const bool llmr::debug::styleParseWarnings = false;
+const bool llmr::debug::spriteWarnings = false;
+const bool llmr::debug::renderWarnings = false;
+const bool llmr::debug::renderTree = false;
+const bool llmr::debug::labelTextMissingWarning = true;
+const bool llmr::debug::missingFontStackWarning = true;
+const bool llmr::debug::missingFontFaceWarning = true;
+const bool llmr::debug::glyphWarning = true;
+const bool llmr::debug::shapingWarning = true;
+#else
+const bool llmr::debug::tileParseWarnings = false;
+const bool llmr::debug::styleParseWarnings = false;
+const bool llmr::debug::spriteWarnings = false;
+const bool llmr::debug::renderWarnings = false;
+const bool llmr::debug::renderTree = false;
+const bool llmr::debug::labelTextMissingWarning = false;
+const bool llmr::debug::missingFontStackWarning = false;
+const bool llmr::debug::missingFontFaceWarning = false;
+const bool llmr::debug::glyphWarning = false;
+const bool llmr::debug::shapingWarning = false;
+#endif