MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
projection_mode.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <functional>
4 #include <optional>
5 
6 namespace mbgl {
7 
13  ProjectionMode& withAxonometric(bool o) { axonometric = o; return *this; }
14  ProjectionMode& withXSkew(double o) { xSkew = o; return *this; }
15  ProjectionMode& withYSkew(double o) { ySkew = o; return *this; }
16 
20  std::optional<bool> axonometric;
21 
25  std::optional<double> xSkew;
26 
30  std::optional<double> ySkew;
31 };
32 
33 } // namespace mbgl
Definition: actor.hpp:15
Holds values for Axonometric rendering. All fields are optional.
std::optional< bool > axonometric
Set to True to enable axonometric rendering, false otherwise.
ProjectionMode & withAxonometric(bool o)
ProjectionMode & withYSkew(double o)
std::optional< double > ySkew
The Y skew value represents how much to skew on the y-axis.
std::optional< double > xSkew
The X skew value represents how much to skew on the x-axis.
ProjectionMode & withXSkew(double o)