MayaFlux 0.3.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 47 of file Windowing.cpp.

49{
50 const auto& state = window->get_state();
51 return window_coords(ndc_x, ndc_y, ndc_z, state.current_width, state.current_height);
52}
glm::vec2 window_coords(double ndc_x, double ndc_y, double ndc_z, uint32_t window_width, uint32_t window_height)
Convert NDC coordinates to window pixel coordinates.
Definition Windowing.cpp:38

References window_coords().

+ Here is the call graph for this function: