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

◆ normalize_coords() [1/2]

MAYAFLUX_API glm::vec3 MayaFlux::normalize_coords ( double  window_x,
double  window_y,
const std::shared_ptr< Core::Window > &  window 
)

Convert window pixel coordinates to NDC using window state.

Parameters
window_xX coordinate in window space
window_yY coordinate in window space
windowWindow to extract dimensions from
Returns
NDC coordinates as vec3 (x, y, 0.0)

Definition at line 31 of file Windowing.cpp.

33{
34 const auto& state = window->get_state();
35 return normalize_coords(window_x, window_y, state.current_width, state.current_height);
36}
glm::vec3 normalize_coords(double window_x, double window_y, uint32_t window_width, uint32_t window_height)
Convert window pixel coordinates to normalized device coordinates (NDC)
Definition Windowing.cpp:23

References normalize_coords().

+ Here is the call graph for this function: