1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! Utility library for games.
//!
//! # Features
//!
//! ### `window`
//!
//! Creates a desktop window and a WASM based web "window" for drawing pixels.
//! Runs a configurable game loop which splits a render and an update function.
//!
//! ### `font`
//!
//! Render a simple ASCII bitmap font.

#[cfg(feature = "window")]
mod window;
#[cfg(feature = "window")]
pub use window::{window, WindowConfig};

#[cfg(feature = "font")]
pub mod font;

/// Re-export vek types.
pub use vek::*;
/// Re-export winit types.
#[cfg(feature = "window")]
pub use winit::{dpi::PhysicalSize, event::VirtualKeyCode as Key};
/// Re-export winit_input_helper key type.
#[cfg(feature = "window")]
pub use winit_input_helper::TextChar;