Files
MapLibreParticleLab/src/mbgl/style/layers/raster_layer_properties.hpp
Thiago Marcos P. Santos cf95bc2bb2 [build] Disable clang-format on generated code
Nice to have, but would make maintain the templates a lot harder.
2019-09-25 18:59:07 +03:00

81 lines
2.1 KiB
C++

// clang-format off
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#pragma once
#include <mbgl/style/types.hpp>
#include <mbgl/style/layer_properties.hpp>
#include <mbgl/style/layers/raster_layer.hpp>
#include <mbgl/style/layout_property.hpp>
#include <mbgl/style/paint_property.hpp>
#include <mbgl/style/properties.hpp>
#include <mbgl/programs/attributes.hpp>
#include <mbgl/programs/uniforms.hpp>
namespace mbgl {
namespace style {
struct RasterBrightnessMax : PaintProperty<float> {
static float defaultValue() { return 1; }
};
struct RasterBrightnessMin : PaintProperty<float> {
static float defaultValue() { return 0; }
};
struct RasterContrast : PaintProperty<float> {
static float defaultValue() { return 0; }
};
struct RasterFadeDuration : PaintProperty<float> {
static float defaultValue() { return 300; }
};
struct RasterHueRotate : PaintProperty<float> {
static float defaultValue() { return 0; }
};
struct RasterOpacity : PaintProperty<float> {
static float defaultValue() { return 1; }
};
struct RasterResampling : PaintProperty<RasterResamplingType> {
static RasterResamplingType defaultValue() { return RasterResamplingType::Linear; }
};
struct RasterSaturation : PaintProperty<float> {
static float defaultValue() { return 0; }
};
class RasterPaintProperties : public Properties<
RasterBrightnessMax,
RasterBrightnessMin,
RasterContrast,
RasterFadeDuration,
RasterHueRotate,
RasterOpacity,
RasterResampling,
RasterSaturation
> {};
class RasterLayerProperties final : public LayerProperties {
public:
explicit RasterLayerProperties(Immutable<RasterLayer::Impl>);
RasterLayerProperties(
Immutable<RasterLayer::Impl>,
RasterPaintProperties::PossiblyEvaluated);
~RasterLayerProperties() override;
unsigned long constantsMask() const override;
const RasterLayer::Impl& layerImpl() const;
// Data members.
RasterPaintProperties::PossiblyEvaluated evaluated;
};
} // namespace style
} // namespace mbgl
// clang-format on