Files
MapLibreParticleLab/include/mln/style/layers/custom_layer_render_parameters.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

38 lines
812 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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