Skip to main content

khora_infra/ui/egui/
mod.rs

1// Copyright 2025 eraflo
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Egui backend for the Khora Engine editor overlay.
16//!
17//! This module provides:
18//! - [`EguiOverlay`] — the concrete [`EditorOverlay`](khora_core::ui::EditorOverlay)
19//!   implementation backed by egui + a custom wgpu renderer.
20//! - [`EguiWgpuRenderer`] — low-level wgpu rendering of egui primitives.
21//! - [`EguiFrameRenderState`] — per-frame GPU state passed to the overlay.
22
23pub mod app;
24pub mod overlay;
25pub mod renderer;
26pub mod shell;
27pub mod theme;
28pub mod ui_builder;
29
30pub use app::{run_native, EguiAppContext};
31pub use overlay::{EguiFrameRenderState, EguiOverlay};
32pub use renderer::EguiWgpuRenderer;
33pub use shell::EguiEditorShell;
34pub use ui_builder::EguiUiBuilder;