-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a45e003
commit f99dd55
Showing
11 changed files
with
208 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
/// Derived from: https://github.com/bevyengine/bevy/pull/5550 | ||
pub mod image_copy; | ||
pub mod scene; | ||
mod image_copy; | ||
mod scene; | ||
|
||
use bevy::app::{App, Plugin, PostUpdate}; | ||
use image_copy::ImageCopyPlugin; | ||
use scene::update; | ||
pub use scene::{SceneInfo,setup_render_target, white_img_placeholder, CurrImageBase64}; | ||
|
||
pub struct FrameCapturePlugin; | ||
|
||
impl Plugin for FrameCapturePlugin { | ||
fn build(&self, app: &mut App) { | ||
app.add_plugins(ImageCopyPlugin); | ||
app.add_systems(PostUpdate, update); | ||
app.init_resource::<scene::SceneInfo>(); | ||
app.add_event::<scene::SceneInfo>(); | ||
} | ||
} |
Oops, something went wrong.