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

◆ window_coords() [3/4]

MAYAFLUX_API glm::vec2 MayaFlux::window_coords ( double  ndc_x,
double  ndc_y,
double  ndc_z,
const std::shared_ptr< Core::Window > &  window 
)

Convert NDC coordinates to window pixel coordinates using window state.

Parameters
ndc_xX coordinate in NDC space
ndc_yY coordinate in NDC space
ndc_zZ coordinate (ignored)
windowWindow to extract dimensions from
Returns
Window coordinates in pixels

Definition at line 40 of file Windowing.cpp.

42{
43 const auto& s = window->get_state();
44 return Kinesis::to_window({ static_cast<float>(ndc_x), static_cast<float>(ndc_y), static_cast<float>(ndc_z) },
45 s.current_width, s.current_height);
46}

References MayaFlux::Kinesis::to_window().

+ Here is the call graph for this function: