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

◆ window_coords() [1/4]

MAYAFLUX_API glm::vec2 MayaFlux::window_coords ( const glm::vec3 &  ndc_pos,
const std::shared_ptr< Core::Window > &  window 
)

Convert NDC vec3 position to window pixel coordinates using window state.

Parameters
ndc_posNDC position (z component ignored)
windowWindow to extract dimensions from
Returns
Window coordinates in pixels

Definition at line 60 of file Windowing.cpp.

62{
63 const auto& state = window->get_state();
64 return window_coords(ndc_pos.x, ndc_pos.y, ndc_pos.z, state.current_width, state.current_height);
65}
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: