blob: 95d2d0f668a9083f4f827049399eb643df0c5312 (
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
|
#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
|