MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ normalized_size_to_pixels() [3/4]

MAYAFLUX_API glm::uvec2 MayaFlux::normalized_size_to_pixels ( const Kinesis::AABB2D region,
const std::shared_ptr< Core::Window > &  window 
)

Convert an NDC AABB's extent to integer pixel dimensions using window state.

Parameters
regionNDC axis-aligned bounding box.
windowWindow to extract dimensions from.
Returns
Integer pixel dimensions of the region's extent.

Definition at line 116 of file Windowing.cpp.

118{
119 const auto& s = window->get_state();
120 return Kinesis::ndc_size_to_pixels(region, s.current_width, s.current_height);
121}

References MayaFlux::Kinesis::ndc_size_to_pixels().

+ Here is the call graph for this function: