21 uint32_t window_width, uint32_t window_height)
23 return Kinesis::to_ndc(window_x, window_y, window_width, window_height);
27 const std::shared_ptr<Core::Window>& window)
29 const auto& s = window->get_state();
30 return Kinesis::to_ndc(window_x, window_y, s.current_width, s.current_height);
34 uint32_t window_width, uint32_t window_height)
36 return Kinesis::to_window({
static_cast<float>(ndc_x),
static_cast<float>(ndc_y),
static_cast<float>(ndc_z) },
37 window_width, window_height);
41 const std::shared_ptr<Core::Window>& window)
43 const auto& s = window->get_state();
44 return Kinesis::to_window({
static_cast<float>(ndc_x),
static_cast<float>(ndc_y),
static_cast<float>(ndc_z) },
45 s.current_width, s.current_height);
49 uint32_t window_width, uint32_t window_height)
55 const std::shared_ptr<Core::Window>& window)
57 const auto& s = window->get_state();
68 const auto& s = window->get_state();
73 uint32_t window_width, uint32_t window_height)
79 const std::shared_ptr<Core::Window>& window)
81 const auto& s = window->get_state();
86 uint32_t window_width, uint32_t window_height)
92 const std::shared_ptr<Core::Window>& window)
94 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 GLFW 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.
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::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.