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(crate) mod canvas;
16pub mod extension;
17pub(crate) mod fixture_definition_editor;
18pub(crate) mod fixture_editor;
19pub(crate) mod key_code;
20pub mod link;
21pub(crate) mod midi_learn;
22pub(crate) mod model;
23pub(crate) mod pipeline;
24pub(crate) mod platform;
25pub mod render_state;
26pub mod settings;
27pub mod style;
28pub mod ui;
29
30/// The app's render state. Panics before the app started, which only code
31/// drawing the app can reach.
32pub fn wgpu_render_state() -> eframe::egui_wgpu::RenderState {
33    render_state::get().expect("the app has started")
34}