#pragma once #include #include 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 projectionMatrix; /// A 4×4 matrix representing the map view’s current near clip projection state. std::array nearClippedProjectionMatrix; CustomLayerRenderParameters(const PaintParameters&); }; } // namespace style } // namespace mln