Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
38 lines
812 B
C++
38 lines
812 B
C++
#pragma once
|
||
|
||
#include <memory>
|
||
#include <array>
|
||
|
||
namespace mln {
|
||
|
||
class PaintParameters;
|
||
|
||
namespace style {
|
||
|
||
/**
|
||
* Parameters that define the current camera position for a
|
||
* `CustomLayerHost::render()` function.
|
||
*/
|
||
struct CustomLayerRenderParameters {
|
||
double width;
|
||
double height;
|
||
double latitude;
|
||
double longitude;
|
||
double zoom;
|
||
double bearing;
|
||
double pitch;
|
||
double fieldOfView;
|
||
|
||
/// Standard projection matrix (nearZ = 1 tile unit).
|
||
/// Use this for 2D/flat custom geometry.
|
||
std::array<double, 16> projectionMatrix;
|
||
|
||
/// A 4×4 matrix representing the map view’s current near clip projection state.
|
||
std::array<double, 16> nearClippedProjectionMatrix;
|
||
|
||
CustomLayerRenderParameters(const PaintParameters&);
|
||
};
|
||
|
||
} // namespace style
|
||
} // namespace mln
|