aboutsummaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-07-24 11:46:40 -0400
committerLibravatar Silas Bartha <[email protected]>2024-07-24 11:47:21 -0400
commitd7e1903369330c5438892c5ddfdbc7c1ef179633 (patch)
tree1913fc25e8d35e8743ea432ec80390f0f23538b2 /src/components.rs
parent52005369648e06cb2e1b36bb5dd7c19445aa4ee4 (diff)
Renamed + Updated to Bevy 0.14 + Added 0BSD Option
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components.rs b/src/components.rs
index f9fe912..8e25530 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -2,18 +2,18 @@ use std::sync::{Arc, Mutex};
use bevy::{ecs::query::QueryItem, prelude::*, render::extract_component::ExtractComponent};
-use crate::render_assets::FramebufferExtractSource;
+use crate::render_assets::HeadlessRenderSource;
-/// Framebuffer extraction destination. Contains the image which the framebuffer is extracted to.
+/// Headless render destination. Contains the image which the rendered frame is copied to.
#[derive(Component, Default, Clone)]
-pub struct FramebufferExtractDestination(pub Arc<Mutex<Image>>);
+pub struct HeadlessRenderDestination(pub Arc<Mutex<Image>>);
-impl ExtractComponent for FramebufferExtractDestination {
- type QueryData = (&'static Self, &'static Handle<FramebufferExtractSource>);
+impl ExtractComponent for HeadlessRenderDestination {
+ type QueryData = (&'static Self, &'static Handle<HeadlessRenderSource>);
type QueryFilter = ();
- type Out = (Self, Handle<FramebufferExtractSource>);
+ type Out = (Self, Handle<HeadlessRenderSource>);
fn extract_component(
(destination, source_handle): QueryItem<'_, Self::QueryData>,
@@ -22,11 +22,11 @@ impl ExtractComponent for FramebufferExtractDestination {
}
}
-/// Bundle containing both a source and destination for framebuffer extraction.
+/// Bundle containing both a source and destination for headless rendering.
#[derive(Bundle)]
-pub struct ExtractFramebufferBundle {
+pub struct HeadlessRenderBundle {
/// Source
- pub source: Handle<FramebufferExtractSource>,
+ pub source: Handle<HeadlessRenderSource>,
/// Destination
- pub dest: FramebufferExtractDestination,
+ pub dest: HeadlessRenderDestination,
}