mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +00:00
2344ada89f
# Objective - Reduce confusion as the example opens a window and isn't truly "headless" - Fixes https://github.com/bevyengine/bevy/issues/5260. ## Solution - Rename the example and add to the docs that the window is expected.
17 lines
489 B
Rust
17 lines
489 B
Rust
//! An application that runs with default plugins and displays an empty
|
|
//! window, but without an actual renderer.
|
|
//! This can be very useful for integration tests or CI.
|
|
//!
|
|
//! See also the `headless` example which does not display a window.
|
|
|
|
use bevy::{prelude::*, render::settings::WgpuSettings};
|
|
|
|
fn main() {
|
|
App::new()
|
|
.insert_resource(WgpuSettings {
|
|
backends: None,
|
|
..default()
|
|
})
|
|
.add_plugins(DefaultPlugins)
|
|
.run();
|
|
}
|