diff options
author | Silas Bartha <[email protected]> | 2024-07-24 12:02:10 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-07-24 12:02:10 -0400 |
commit | 345e0665bfc9cb796d054c106f56966e9d5a7e22 (patch) | |
tree | 5a4b371cbb8231048d13d07e0c4249834dbc379b /src/display/systems.rs | |
parent | f6b9eda55d3a2f3dbae7e1671138cf10d4151f17 (diff) |
Update to bevy 0.14 + Add 0BSD Optionv0.3.0
Diffstat (limited to 'src/display/systems.rs')
-rw-r--r-- | src/display/systems.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/display/systems.rs b/src/display/systems.rs index 037f72d..9f8acb9 100644 --- a/src/display/systems.rs +++ b/src/display/systems.rs @@ -2,9 +2,7 @@ use bevy::{ prelude::*, render::render_resource::{Extent3d, TextureFormat}, }; -use bevy_framebuffer_extract::{ - components::FramebufferExtractDestination, render_assets::FramebufferExtractSource, -}; +use bevy_headless_render::{components::HeadlessRenderDestination, render_assets::HeadlessRenderSource}; use crossterm::event::Event; use ratatui::{ style::Stylize, @@ -27,7 +25,7 @@ const BRAILLE_DOT_BIT_POSITIONS: [u8; 8] = [0, 1, 2, 6, 3, 4, 5, 7]; /// Prints out the contents of a render image to the terminal as braille characters pub fn print_to_terminal( mut terminal: ResMut<Terminal>, - image_exports: Query<&FramebufferExtractDestination>, + image_exports: Query<&HeadlessRenderDestination>, mut widgets: Query<&mut Widget>, ) { for image_export in image_exports.iter() { @@ -108,7 +106,7 @@ fn braille_char(mask: u8) -> char { /// Watches for terminal resize events and resizes the render image accordingly pub fn resize_handling( mut images: ResMut<Assets<Image>>, - mut sources: ResMut<Assets<FramebufferExtractSource>>, + mut sources: ResMut<Assets<HeadlessRenderSource>>, mut event_reader: EventReader<TerminalInputEvent>, ) { for event in event_reader.read() { |