[general] moving ios and android project under ./platform folder

This commit is contained in:
Petr Pokorny
2020-12-20 12:38:56 +01:00
parent 8e759a51e4
commit 41f0be34e7
9877 changed files with 141 additions and 2889 deletions

View File

@@ -0,0 +1,25 @@
#include <mbgl/programs/program_parameters.hpp>
#include <mbgl/util/string.hpp>
namespace mbgl {
ProgramParameters::ProgramParameters(const float pixelRatio,
const bool overdraw)
: defines([&] {
std::string result;
result.reserve(32);
result += "#define DEVICE_PIXEL_RATIO ";
result += util::toString(pixelRatio, true);
result += '\n';
if (overdraw) {
result += "#define OVERDRAW_INSPECTOR\n";
}
return result;
}()) {
}
const std::string& ProgramParameters::getDefines() const {
return defines;
}
} // namespace mbgl