bevy/examples/app/no_renderer.rs
Christian Legnitto 2344ada89f Rename headless_defaults example to no_renderer for clarity (#5263)
# 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.
2022-07-11 14:11:32 +00:00

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();
}