Expand description
Blinc Desktop Platform
Windowing and input for macOS, Windows, and Linux using winit.
This crate implements the blinc_platform traits for desktop platforms,
providing cross-platform windowing, input handling, and event management.
§Example
ⓘ
use blinc_platform::prelude::*;
use blinc_platform_desktop::DesktopPlatform;
fn main() -> Result<(), PlatformError> {
let platform = DesktopPlatform::new()?;
let event_loop = platform.create_event_loop(WindowConfig::default())?;
event_loop.run(|event, window| {
match event {
Event::Frame => {
// Render frame here
}
Event::Window(WindowEvent::CloseRequested) => {
return ControlFlow::Exit;
}
_ => {}
}
ControlFlow::Continue
})
}Re-exports§
pub use event_loop::DesktopEventLoop;pub use event_loop::WakeProxy;pub use window::DesktopWindow;
Modules§
- event_
loop - Desktop event loop implementation using winit
- input
- Desktop input conversion (winit -> blinc_platform)
- window
- Desktop window implementation using winit
Structs§
- Desktop
Platform - Desktop platform implementation