Files
MapLibreParticleLab/include/mbgl/style/layers/custom_layer_render_parameters.hpp
Yaroslav 14d3c7529d core: add nearClippedProjectionMatrix to MLNCustomStyleLayer (#4364)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2026-07-09 17:55:59 +00:00

38 lines
814 B
C++
Raw 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 mbgl {
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 mbgl