MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Windowing.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Core
 

Functions

Core::WindowManagerMayaFlux::get_window_manager ()
 Gets a handle to default window manager.
 
std::shared_ptr< Core::WindowMayaFlux::create_window (const Core::WindowCreateInfo &create_info)
 Create a new window with specified parameters.
 
glm::vec3 MayaFlux::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)
 
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.
 
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.
 
glm::vec2 MayaFlux::window_coords (double ndc_x, double ndc_y, double ndc_z, const std::shared_ptr< Core::Window > &window)
 Convert NDC coordinates to window pixel coordinates using window state.
 
glm::vec2 MayaFlux::window_coords (const glm::vec3 &ndc_pos, uint32_t window_width, uint32_t window_height)
 Convert NDC vec3 position to window pixel coordinates.
 
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.
 
float MayaFlux::aspect_ratio (uint32_t window_width, uint32_t window_height)
 Get window aspect ratio (width/height)
 
float MayaFlux::aspect_ratio (const std::shared_ptr< Core::Window > &window)
 Get window aspect ratio from window state.
 
glm::vec3 MayaFlux::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)
 
glm::vec3 MayaFlux::normalize_coords_aspect (double window_x, double window_y, const std::shared_ptr< Core::Window > &window)
 Normalize coordinates preserving aspect ratio using window state.
 
bool MayaFlux::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.
 
bool MayaFlux::is_in_bounds (double window_x, double window_y, const std::shared_ptr< Core::Window > &window)
 Check if a point in window coordinates is inside the window bounds.