Skip to content

Commit d9d305d

Browse files
bugsweeperBD103mockersf
authored
Headless renderer example has been added (#13006)
# Objective Fixes #11457. Fixes #22. ## Solution Based on [another headless application](https://github.com/richardanaya/headless/) --- ## Changelog - Adopted to bevy 0.14 --------- Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com> Co-authored-by: François Mockers <francois.mockers@vleue.com>
1 parent 9c4ac7c commit d9d305d

File tree

3 files changed

+541
-0
lines changed

3 files changed

+541
-0
lines changed

Cargo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,17 @@ description = "An application that runs with default plugins and displays an emp
12741274
category = "Application"
12751275
wasm = false
12761276

1277+
[[example]]
1278+
name = "headless_renderer"
1279+
path = "examples/app/headless_renderer.rs"
1280+
doc-scrape-examples = true
1281+
1282+
[package.metadata.example.headless_renderer]
1283+
name = "Headless Renderer"
1284+
description = "An application that runs with no window, but renders into image file"
1285+
category = "Application"
1286+
wasm = false
1287+
12771288
[[example]]
12781289
name = "without_winit"
12791290
path = "examples/app/without_winit.rs"

examples/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ Example | Description
188188
[Empty](../examples/app/empty.rs) | An empty application (does nothing)
189189
[Empty with Defaults](../examples/app/empty_defaults.rs) | An empty application with default plugins
190190
[Headless](../examples/app/headless.rs) | An application that runs without default plugins
191+
[Headless Renderer](../examples/app/headless_renderer.rs) | An application that runs with no window, but renders into image file
191192
[Log layers](../examples/app/log_layers.rs) | Illustrate how to add custom log layers
192193
[Logs](../examples/app/logs.rs) | Illustrate how to use generate log output
193194
[No Renderer](../examples/app/no_renderer.rs) | An application that runs with default plugins and displays an empty window, but without an actual renderer

0 commit comments

Comments
 (0)