|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API glm::vec2 MayaFlux::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.
| ndc_x | X coordinate in NDC space [-1, +1] |
| ndc_y | Y coordinate in NDC space [-1, +1] (center origin, +Y up) |
| ndc_z | Z coordinate (ignored, accepted for convenience when passing vec3) |
| window_width | Window width in pixels |
| window_height | Window height in pixels |
Inverse of normalize_coords(). Z coordinate is ignored.
Definition at line 38 of file Windowing.cpp.
Referenced by window_coords(), window_coords(), and window_coords().
Here is the caller graph for this function: