Skip to content

[Merged by Bors] - Add headless mode#3439

Closed
Shatur wants to merge 3 commits into
bevyengine:mainfrom
gardum-game:headless-mode
Closed

[Merged by Bors] - Add headless mode#3439
Shatur wants to merge 3 commits into
bevyengine:mainfrom
gardum-game:headless-mode

Conversation

@Shatur

@Shatur Shatur commented Dec 26, 2021

Copy link
Copy Markdown
Contributor

Objective

In this PR I added the ability to opt-out graphical backends. Closes #3155.

Solution

I turned backends into Option and removed panicking sub app API to force users handle the error (was suggested by @cart).

@github-actions github-actions Bot added the S-Needs-Triage This issue needs to be labelled label Dec 26, 2021
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible and removed S-Needs-Triage This issue needs to be labelled labels Dec 26, 2021
Comment thread crates/bevy_app/src/app.rs
Comment thread examples/shader/shader_defs.rs Outdated
@cart cart added this to the Bevy 0.6 milestone Dec 31, 2021
@cart cart removed this from the Bevy 0.6 milestone Jan 8, 2022
@cart

cart commented Jan 8, 2022

Copy link
Copy Markdown
Member

This breaks examples like 3d_scene because it tries registering ImagePlugin before the RenderApp is inserted

@Shatur

Shatur commented Jan 8, 2022

Copy link
Copy Markdown
Contributor Author

This breaks examples like 3d_scene because it tries registering ImagePlugin before the RenderApp is inserted

Yeah, thinking about elegant solution right now. The function is huge.

@cart

cart commented Jan 8, 2022

Copy link
Copy Markdown
Member

bors r+

bors Bot pushed a commit that referenced this pull request Jan 8, 2022
# Objective

In this PR I added the ability to opt-out graphical backends. Closes #3155.

## Solution

I turned backends into `Option` ~~and removed panicking sub app API to force users handle the error (was suggested by `@cart`)~~.
@bors bors Bot changed the title Add headless mode [Merged by Bors] - Add headless mode Jan 8, 2022
@bors bors Bot closed this Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add headless renderer

4 participants