Skip to main content

ViewportSnapshot Struct

Immutable snapshot of a Viewport's state at a specific point in time. More...

Declaration

struct helios::rendering::ViewportSnapshot { ... }

Public Member Attributes Index

helios::engine::common::types::ViewportIdviewportId {helios::core::types::no_init}

Unique identifier for the viewport. More...

helios::math::vec4fbounds

Normalized bounds [x, y, width, height] in range [0, 1]. More...

helios::math::vec4fabsoluteBounds

Absolute bounds [x, y, width, height] in pixels. More...

Description

Immutable snapshot of a Viewport's state at a specific point in time.

ViewportSnapshot captures the essential viewport data needed for rendering, including viewport ID and both normalized and absolute bounds. This allows systems to work with consistent viewport data throughout a frame, even if the source Viewport is modified.

Definition at line 25 of file ViewportSnapshot.ixx.

Public Member Attributes

absoluteBounds

helios::math::vec4f helios::rendering::ViewportSnapshot::absoluteBounds

Absolute bounds [x, y, width, height] in pixels.

Definition at line 40 of file ViewportSnapshot.ixx.

bounds

helios::math::vec4f helios::rendering::ViewportSnapshot::bounds

Normalized bounds [x, y, width, height] in range [0, 1].

Definition at line 35 of file ViewportSnapshot.ixx.

viewportId

helios::engine::common::types::ViewportId helios::rendering::ViewportSnapshot::viewportId {helios::core::types::no_init}

Unique identifier for the viewport.

Definition at line 30 of file ViewportSnapshot.ixx.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.