bevy/crates/bevy_render/src
Daniel McNab b731ebad1b Allow closing windows at runtime (#3575)
# Objective

Fixes #3180, builds from https://github.com/bevyengine/bevy/pull/2898

## Solution

Support requesting a window to be closed and closing a window in `bevy_window`, and handle this in `bevy_winit`.

This is a stopgap until we move to windows as entites, which I'm sure I'll get around to eventually.

## Changelog

### Added

- `Window::close` to allow closing windows.
- `WindowClosed` to allow reacting to windows being closed.

### Changed

Replaced `bevy::system::exit_on_esc_system` with `bevy:🪟:close_on_esc`.

## Fixed

The app no longer exits when any window is closed. This difference is only observable when there are multiple windows. 

## Migration Guide

`bevy::input::system::exit_on_esc_system` has been removed. Use `bevy:🪟:close_on_esc` instead.
`CloseWindow` has been removed. Use `Window::close` instead.
The `Close` variant has been added to `WindowCommand`. Handle this by closing the relevant window.
2022-05-05 13:35:43 +00:00
..
camera simplified API to get NDC from camera and world position (#4041) 2022-05-03 19:51:18 +00:00
color Fixed case of R == G, following original conversion formula (#4383) 2022-04-04 18:59:00 +00:00
mesh Add support for vertex colors (#4528) 2022-05-05 00:46:32 +00:00
primitives Faster assign lights to clusters (#4345) 2022-04-15 02:53:20 +00:00
render_graph bevy_render: Support removal of nodes, edges, subgraphs (#3048) 2022-03-21 23:58:37 +00:00
render_phase Compute Pipeline Specialization (#3979) 2022-03-23 00:27:26 +00:00
render_resource StorageBuffer uses wrong type to calculate the buffer size. (#4557) 2022-05-05 02:12:16 +00:00
renderer bevy_app: add tracing event with tracy.frame_mark (#4320) 2022-04-08 22:50:23 +00:00
texture Move Size to bevy_ui (#4285) 2022-04-25 13:54:46 +00:00
view Allow closing windows at runtime (#3575) 2022-05-05 13:35:43 +00:00
lib.rs unsafeify World::entities_mut (#4093) 2022-03-30 23:52:45 +00:00
render_asset.rs Introduce SystemLabel's for RenderAssetPlugin, and change Image preparation system to run before others (#3917) 2022-03-29 19:44:45 +00:00
render_component.rs Filter material handles on extraction (#4178) 2022-05-03 18:28:04 +00:00
settings.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00