* [core] update shaders for line property functions update deps, define device pixel ratio for all shaders [core] create ShaderParameter struct to store pixel ratio and overdraw param repair rebase errs update shaders to include pixel ratio make sure collision_box never overdraws update test suite, move shaders to Painter::render so the correct pixel ratio is applied move shader compiling back to the Painter constructor rebase from shader --> program refactor re-factor parameters for collisionBox and debug programs remove unused vars from line-program, move blur math to shader update core files remove unecessary files update shaders PR, remove comments bump test suite sha fix formatting, incorporate feedback refactor program.hpp * [core] remove line transformations that were moved to the shaders, bump shader sha * [core] shorten ProgramParameter instantiation * [core] bump shader+test suite shas
17 lines
268 B
C++
17 lines
268 B
C++
#pragma once
|
|
|
|
namespace mbgl {
|
|
|
|
class ProgramParameters {
|
|
public:
|
|
ProgramParameters(float pixelRatio_ = 1.0, bool overdraw_ = false)
|
|
: pixelRatio(pixelRatio_),
|
|
overdraw(overdraw_) {}
|
|
|
|
float pixelRatio;
|
|
bool overdraw;
|
|
};
|
|
|
|
} // namespace mbgl
|
|
|