pub(crate) fn letterbox(
baseline: Option<(u32, u32)>,
target: (u32, u32),
letterbox: bool,
) -> (Option<ViewportRect>, (u32, u32))Expand description
The region a scene’s content is drawn into and the size its camera is built
for, for a target-pixel render target.
baseline is the aspect to keep, or None for a scene with no aspect of
its own — a UI-only one — which draws into the whole target. letterbox
turns the whole mechanism off, which is what a capture wants: its
captures are the scene’s own size and must stay comparable with the stored
snapshots.