Skip to main content

gled_ui/
lib.rs

1//! gled's egui interface without the engine. The desktop app and the browser
2//! page both build on it; it compiles for the web, so it only talks to the
3//! engine through `gled_protocol` messages.
4
5#![forbid(unsafe_code)]
6#![forbid(clippy::unwrap_used)]
7#![warn(clippy::todo)]
8#![warn(missing_debug_implementations)]
9#![recursion_limit = "256"]
10#![allow(clippy::too_many_arguments, clippy::type_complexity)]
11
12pub mod app;
13pub(crate) mod assets;
14pub(crate) mod audio;
15pub mod extension;
16pub(crate) mod key_code;
17pub(crate) mod layout;
18pub mod link;
19pub(crate) mod midi_learn;
20pub(crate) mod model;
21pub(crate) mod pipeline;
22pub(crate) mod platform;
23pub mod render_state;
24pub mod settings;
25pub mod style;
26pub mod ui;
27
28/// The app's render state. Panics before the app started, which only code
29/// drawing the app can reach.
30pub fn wgpu_render_state() -> eframe::egui_wgpu::RenderState {
31    render_state::get().expect("the app has started")
32}