Skip to content

Commit

Permalink
chore: the signal methods are now optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhamAryanpur committed Feb 18, 2024
1 parent da1959c commit 5abe028
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ pub trait Signal: Any {
_events: &crate::Event<()>,
_input: &crate::InputHelper,
_camera: &mut crate::Camera,
);
) {
}

/// ran before the frame is rendered
fn frame(
Expand All @@ -492,8 +493,10 @@ pub trait Signal: Any {
_input: &crate::InputHelper,
_encoder: &mut crate::CommandEncoder,
_view: &crate::TextureView,
);
) {
}
}
// The engine needs to know the functions of Signal to do things internally, so we use downcast and not the std::any::Any
downcast!(dyn Signal);

/// Defines how the rotation axis is
Expand Down

0 comments on commit 5abe028

Please sign in to comment.