aboutsummaryrefslogtreecommitdiff
path: root/src/display/components.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-07-24 12:02:10 -0400
committerLibravatar Silas Bartha <[email protected]>2024-07-24 12:02:10 -0400
commit345e0665bfc9cb796d054c106f56966e9d5a7e22 (patch)
tree5a4b371cbb8231048d13d07e0c4249834dbc379b /src/display/components.rs
parentf6b9eda55d3a2f3dbae7e1671138cf10d4151f17 (diff)
Update to bevy 0.14 + Add 0BSD Optionv0.3.0
Diffstat (limited to 'src/display/components.rs')
-rw-r--r--src/display/components.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/display/components.rs b/src/display/components.rs
index 4459325..1deb6f5 100644
--- a/src/display/components.rs
+++ b/src/display/components.rs
@@ -1,6 +1,6 @@
use bevy::{prelude::*, render::render_resource::{Extent3d, TextureDescriptor, TextureDimension, TextureFormat, TextureUsages}};
use bevy_dither_post_process::components::DitherPostProcessSettings;
-use bevy_framebuffer_extract::{components::{ExtractFramebufferBundle, FramebufferExtractDestination}, render_assets::FramebufferExtractSource};
+use bevy_headless_render::{components::{HeadlessRenderBundle, HeadlessRenderDestination}, render_assets::HeadlessRenderSource};
/// Marker component for terminal display
#[derive(Component)]
@@ -11,8 +11,8 @@ pub struct TerminalDisplay;
#[derive(Bundle)]
pub struct TerminalDisplayBundle {
_terminal_display: TerminalDisplay,
- extract_framebuffer_bundle: ExtractFramebufferBundle,
- dither_post_process_settings: DitherPostProcessSettings,
+ _headless_render_bundle: HeadlessRenderBundle,
+ _dither_post_process_settings: DitherPostProcessSettings,
image_handle: Handle<Image>,
}
@@ -48,16 +48,16 @@ impl TerminalDisplayBundle {
let image_handle = asset_server.add(image);
let framebuffer_extract_source =
- asset_server.add(FramebufferExtractSource(image_handle.clone()));
+ asset_server.add(HeadlessRenderSource(image_handle.clone()));
Self {
_terminal_display: TerminalDisplay,
- extract_framebuffer_bundle: ExtractFramebufferBundle {
+ _headless_render_bundle: HeadlessRenderBundle {
source: framebuffer_extract_source,
- dest: FramebufferExtractDestination::default(),
+ dest: HeadlessRenderDestination::default(),
},
image_handle,
- dither_post_process_settings: DitherPostProcessSettings::new(
+ _dither_post_process_settings: DitherPostProcessSettings::new(
dither_level,
asset_server,
),