20 uint32_t window_width, uint32_t window_height)
22 return Kinesis::to_ndc(window_x, window_y, window_width, window_height);
26 const std::shared_ptr<Core::Window>& window)
28 const auto& s = window->get_state();
29 return Kinesis::to_ndc(window_x, window_y, s.current_width, s.current_height);
33 uint32_t window_width, uint32_t window_height)
35 return Kinesis::to_window({
static_cast<float>(ndc_x),
static_cast<float>(ndc_y),
static_cast<float>(ndc_z) },
36 window_width, window_height);
40 const std::shared_ptr<Core::Window>& window)
42 const auto& s = window->get_state();
43 return Kinesis::to_window({
static_cast<float>(ndc_x),
static_cast<float>(ndc_y),
static_cast<float>(ndc_z) },
44 s.current_width, s.current_height);
48 uint32_t window_width, uint32_t window_height)
54 const std::shared_ptr<Core::Window>& window)
56 const auto& s = window->get_state();
67 const auto& s = window->get_state();
72 uint32_t window_width, uint32_t window_height)
78 const std::shared_ptr<Core::Window>& window)
80 const auto& s = window->get_state();
85 uint32_t window_width, uint32_t window_height)
91 const std::shared_ptr<Core::Window>& window)
93 const auto& s = window->get_state();
98 uint32_t window_width, uint32_t window_height)
104 const std::shared_ptr<Core::Window>& window)
106 const auto& s = window->get_state();
111 uint32_t window_width, uint32_t window_height)
117 const std::shared_ptr<Core::Window>& window)
119 const auto& s = window->get_state();
Core engine lifecycle and configuration API.
std::shared_ptr< WindowManager > get_window_manager()
Gets the window manager.
std::shared_ptr< Window > create_window(const WindowCreateInfo &create_info)
Creates a new window.
Manages window lifecycle and Window backend event polling.
glm::vec2 to_window(const glm::vec3 &ndc, uint32_t width, uint32_t height)
Convert NDC to window pixel coordinates.
float aspect_ratio(uint32_t width, uint32_t height)
Aspect ratio from pixel dimensions.
glm::uvec2 ndc_size_to_pixels(const AABB2D ®ion, uint32_t width, uint32_t height)
Convert an NDC AABB's extent to integer pixel dimensions.
bool in_bounds(double window_x, double window_y, uint32_t width, uint32_t height)
Check if a window-space point is within bounds.
glm::vec3 to_ndc(double window_x, double window_y, uint32_t width, uint32_t height)
Convert window pixel coordinates to NDC.
glm::vec3 to_ndc_aspect(double window_x, double window_y, uint32_t width, uint32_t height)
Convert window pixel coordinates to NDC, corrected for aspect ratio.
std::shared_ptr< Core::Window > create_window(const Core::WindowCreateInfo &create_info)
Create a new window with specified parameters.
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.
bool is_in_bounds(double window_x, double window_y, uint32_t window_width, uint32_t window_height)
Check if a point in window coordinates is inside the window bounds.
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)
Core::Engine & get_context()
Gets the default engine instance.
glm::uvec2 normalized_size_to_pixels(const glm::vec2 &ndc_size, uint32_t window_width, uint32_t window_height)
Convert an NDC-space size (extent) to integer pixel dimensions.
glm::vec3 normalize_coords_aspect(double window_x, double window_y, uint32_t window_width, uint32_t window_height)
Normalize coordinates preserving aspect ratio (useful for circular/square shapes)
float aspect_ratio(uint32_t window_width, uint32_t window_height)
Get window aspect ratio (width/height)
Core::WindowManager & get_window_manager()
Gets a handle to default window manager.
Main namespace for the Maya Flux audio engine.
Configuration for creating a single window instance.
Axis-aligned bounding rectangle in a 2D coordinate space.