Files
MapLibreParticleLab/include/mln/map/projection_mode.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

43 lines
862 B
C++

#pragma once
#include <functional>
#include <optional>
namespace mln {
/**
* @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 mln