retroglyph-window 0.1.0

Shared winit windowing layer for retroglyph's windowed backends
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Everything winit-specific in this crate: the event loop, event
//! translation, and the windowed app drivers.
//!
//! A driver for another windowing library (SDL2, tao, a custom loop) would
//! be a sibling module with the same shape: create a window, translate its
//! events into [`Event`](retroglyph_core::event::Event)s pushed onto
//! [`WindowBackend`](crate::WindowBackend), and call
//! [`Presenter::present`](crate::Presenter::present) once per frame.

/// The winit event loop, `WindowConfig`, and the `run_windowed`/`run_app` drivers.
pub mod run;
/// winit-event -> retroglyph-event converters.
pub mod translate;

pub use run::{WindowConfig, run_app, run_windowed};