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

◆ normalized_size_to_pixels() [1/4]

MAYAFLUX_API glm::uvec2 MayaFlux::normalized_size_to_pixels ( const glm::vec2 &  ndc_size,
const std::shared_ptr< Core::Window > &  window 
)

Convert an NDC-space size to integer pixel dimensions using window state.

Parameters
ndc_sizeNDC extent.
windowWindow to extract dimensions from.
Returns
Integer pixel dimensions, each at least 1.

Definition at line 103 of file Windowing.cpp.

105{
106 const auto& s = window->get_state();
107 return Kinesis::ndc_size_to_pixels(ndc_size, s.current_width, s.current_height);
108}

References MayaFlux::Kinesis::ndc_size_to_pixels().

+ Here is the call graph for this function: