Files
MapLibreParticleLab/include/mbgl/map/projection_mode.hpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

43 lines
864 B
C++

#pragma once
#include <functional>
#include <optional>
namespace mbgl {
/**
* @brief Holds values for Axonometric rendering. All fields are
* optional.
*/
struct ProjectionMode {
ProjectionMode& withAxonometric(bool o) {
axonometric = o;
return *this;
}
ProjectionMode& withXSkew(double o) {
xSkew = o;
return *this;
}
ProjectionMode& withYSkew(double o) {
ySkew = o;
return *this;
}
/**
* @brief Set to True to enable axonometric rendering, false otherwise.
*/
std::optional<bool> axonometric;
/**
* @brief The X skew value represents how much to skew on the x-axis.
*/
std::optional<double> xSkew;
/**
* @brief The Y skew value represents how much to skew on the y-axis.
*/
std::optional<double> ySkew;
};
} // namespace mbgl