Skip to content

ludus::graphics::renderer::ViewMapping

Ludus Wiki · API overview · Browse API

Struct

Copied mapping shared by draw preparation and pointer conversion; no GPU ownership.

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

#include <ludus/graphics/renderer/views.hpp>
struct ludus::graphics::renderer::ViewMapping final

Fields

DrawableWidth

ludus::foundation::uint32 ludus::graphics::renderer::ViewMapping::DrawableWidth = 0
Actual drawable width against which the mapping was resolved.

Related types: ludus::foundation::uint32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

DrawableHeight

ludus::foundation::uint32 ludus::graphics::renderer::ViewMapping::DrawableHeight = 0
Actual drawable height against which the mapping was resolved.

Related types: ludus::foundation::uint32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Region

rhi::RasterRectangle ludus::graphics::renderer::ViewMapping::Region {}
Physical region owned by this view, clipped to the actual drawable.

Related types: rhi::RasterRectangle

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Viewport

rhi::RasterRectangle ludus::graphics::renderer::ViewMapping::Viewport {}
Rounded drawing rectangle; Fill uses Region and clips through ClipTransform.

Related types: rhi::RasterRectangle

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Origin

ludus::foundation::math::Vector2 ludus::graphics::renderer::ViewMapping::Origin {}
Physical pixel-edge origin of logical (0,0), including crop/letterbox offsets.

Related types: ludus::foundation::math::Vector2

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Scale

ludus::foundation::math::Vector2 ludus::graphics::renderer::ViewMapping::Scale {}
Physical pixels per logical unit, derived from the rounded content rectangle.

Related types: ludus::foundation::math::Vector2

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Screen

VirtualScreen ludus::graphics::renderer::ViewMapping::Screen {}
Validated authored dimensions.

Related types: VirtualScreen

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

ClipTransform

ludus::foundation::math::Matrix4 ludus::graphics::renderer::ViewMapping::ClipTransform = ludus::foundation::math::Matrix4::Identity()
Apply to canonical clip coordinates before rasterization; Fill expands for cropping.

Related types: ludus::foundation::math::Matrix4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

FractionalFallback

bool ludus::graphics::renderer::ViewMapping::FractionalFallback = false
True only when IntegerFit could not fit a whole-number scale.

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp