Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkgs/id/crates/id-native-shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
//! text projection. The #12657 step-2b audio renderer
//! ([`audio`]) presents validated `audio/1` surfaces as scheduled
//! cue entities beside it; shells without it keep the audio's text
//! projection.
//! projection. The #12657 step-2c widget renderer ([`widget`])
//! presents validated `widget/1` surfaces as placed control
//! entities beside it; shells without it keep the widget document's
//! text projection.

pub mod audio;
pub mod events;
Expand All @@ -35,6 +38,7 @@ pub mod providers;
pub mod render;
pub mod scene;
mod session;
pub mod widget;

pub use providers::{
CLIENT_FILE_READ_PROVIDER, ClientProviderExecutor, FileReadExecutor, LocalAuditEntry,
Expand Down
6 changes: 5 additions & 1 deletion pkgs/id/crates/id-native-shell/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
//! view's validated `scene/1` surface as 3D entities, plus the audio
//! renderer ([`id_native_shell::audio::AudioRenderPlugin`]), which
//! presents a view's validated `audio/1` surface as scheduled cue
//! entities.
//! entities, plus the widget renderer
//! ([`id_native_shell::widget::WidgetRenderPlugin`]), which presents
//! a view's validated `widget/1` surface as placed control entities.
//!
//! With `--node <id> --capability <cap>` the binary also runs the live
//! session: [`id_native_shell::run_session`] joins the world on a
Expand All @@ -29,6 +31,7 @@ use bevy::prelude::{App, DefaultPlugins, Res, ResMut, Resource, Startup, Update}
use id_native_shell::audio::AudioRenderPlugin;
use id_native_shell::render::{PresentedForm, PresentedView, ShellRenderPlugin};
use id_native_shell::scene::SceneRenderPlugin;
use id_native_shell::widget::WidgetRenderPlugin;
use id_native_shell::{
CONTRACT_NAME, CONTRACT_VERSION, LocalBounds, ProviderAdapter, SessionView,
run_session_with_providers,
Expand Down Expand Up @@ -285,6 +288,7 @@ fn main() {
.add_plugins(ShellRenderPlugin)
.add_plugins(SceneRenderPlugin)
.add_plugins(AudioRenderPlugin)
.add_plugins(WidgetRenderPlugin)
.add_systems(Startup, announce);
if args.node.is_some() {
match spawn_session(&args) {
Expand Down
Loading