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
30
31
32
33
34
35
36
37
38
39
40
41
//! Utility library for games, not a game engine.
//!
//! # Features
//!
//! - Window creation with game loop and pixel buffer.
//! - Asset management.
//! - Bitmap font drawing.
//! - Sprite loading.
//!
//! # Feature Flags
//!
//! ### `default-font`
//!
//! Implements [`Default`] for [`font::Font`] with a font that's embedded into memory.
//!
//! ### `hot-reloading-assets` (default)
//!
//! Hot-reload assets from disk when they are saved.
//! Has no effect on the web target.
//!
//! ### `embedded-assets` (default on web)
//!
//! Bake _all_ assets in the `assets/` folder in the binary.
//! When creating a release binary this feature flag should be enabled.

pub mod canvas;
pub mod font;
pub mod sprite;

pub mod window;
pub use window::window;

pub mod assets;
pub use assets::{asset, asset_owned};

pub mod gui;

/// Re-export taffy types.
pub use taffy;
/// Re-export vek types.
pub use vek;