@@ -13,65 +13,53 @@ namespace mbgl {
|
||||
class ImagePosition;
|
||||
class UnwrappedTileID;
|
||||
class TransformState;
|
||||
template <class> class Faded;
|
||||
template <class>
|
||||
class Faded;
|
||||
|
||||
using BackgroundLayoutAttributes = PositionOnlyLayoutAttributes;
|
||||
|
||||
using BackgroundUniforms = TypeList<
|
||||
uniforms::matrix,
|
||||
uniforms::color,
|
||||
uniforms::opacity>;
|
||||
using BackgroundUniforms = TypeList<uniforms::matrix, uniforms::color, uniforms::opacity>;
|
||||
|
||||
using BackgroundPatternUniforms = TypeList<
|
||||
uniforms::matrix,
|
||||
uniforms::opacity,
|
||||
uniforms::texsize,
|
||||
uniforms::pattern_tl_a,
|
||||
uniforms::pattern_br_a,
|
||||
uniforms::pattern_tl_b,
|
||||
uniforms::pattern_br_b,
|
||||
uniforms::pattern_size_a,
|
||||
uniforms::pattern_size_b,
|
||||
uniforms::scale_a,
|
||||
uniforms::scale_b,
|
||||
uniforms::mix,
|
||||
uniforms::pixel_coord_upper,
|
||||
uniforms::pixel_coord_lower,
|
||||
uniforms::tile_units_to_pixels>;
|
||||
using BackgroundPatternUniforms = TypeList<uniforms::matrix,
|
||||
uniforms::opacity,
|
||||
uniforms::texsize,
|
||||
uniforms::pattern_tl_a,
|
||||
uniforms::pattern_br_a,
|
||||
uniforms::pattern_tl_b,
|
||||
uniforms::pattern_br_b,
|
||||
uniforms::pattern_size_a,
|
||||
uniforms::pattern_size_b,
|
||||
uniforms::scale_a,
|
||||
uniforms::scale_b,
|
||||
uniforms::mix,
|
||||
uniforms::pixel_coord_upper,
|
||||
uniforms::pixel_coord_lower,
|
||||
uniforms::tile_units_to_pixels>;
|
||||
|
||||
class BackgroundProgram final : public Program<
|
||||
BackgroundProgram,
|
||||
shaders::BuiltIn::BackgroundProgram,
|
||||
gfx::PrimitiveType::Triangle,
|
||||
BackgroundLayoutAttributes,
|
||||
BackgroundUniforms,
|
||||
TypeList<>,
|
||||
style::Properties<>>
|
||||
{
|
||||
class BackgroundProgram final : public Program<BackgroundProgram,
|
||||
shaders::BuiltIn::BackgroundProgram,
|
||||
gfx::PrimitiveType::Triangle,
|
||||
BackgroundLayoutAttributes,
|
||||
BackgroundUniforms,
|
||||
TypeList<>,
|
||||
style::Properties<>> {
|
||||
public:
|
||||
static constexpr std::string_view Name{"BackgroundProgram"};
|
||||
const std::string_view typeName() const noexcept override {
|
||||
return Name;
|
||||
}
|
||||
const std::string_view typeName() const noexcept override { return Name; }
|
||||
|
||||
using Program::Program;
|
||||
};
|
||||
|
||||
class BackgroundPatternProgram final : public Program<
|
||||
BackgroundPatternProgram,
|
||||
shaders::BuiltIn::BackgroundPatternProgram,
|
||||
gfx::PrimitiveType::Triangle,
|
||||
BackgroundLayoutAttributes,
|
||||
BackgroundPatternUniforms,
|
||||
TypeList<
|
||||
textures::image>,
|
||||
style::Properties<>>
|
||||
{
|
||||
class BackgroundPatternProgram final : public Program<BackgroundPatternProgram,
|
||||
shaders::BuiltIn::BackgroundPatternProgram,
|
||||
gfx::PrimitiveType::Triangle,
|
||||
BackgroundLayoutAttributes,
|
||||
BackgroundPatternUniforms,
|
||||
TypeList<textures::image>,
|
||||
style::Properties<>> {
|
||||
public:
|
||||
static constexpr std::string_view Name{"BackgroundPatternProgram"};
|
||||
const std::string_view typeName() const noexcept override {
|
||||
return Name;
|
||||
}
|
||||
const std::string_view typeName() const noexcept override { return Name; }
|
||||
|
||||
using Program::Program;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user