Skip to content

Commit

Permalink
Expose add plugin on app.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Jul 3, 2024
1 parent a8e54ed commit 7d00e3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nannou/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ where
self
}

pub fn add_plugin<P>(mut self, plugin: P) -> Self
where
P: Plugin,
{
self.app.add_plugins(plugin);
self
}

/// Specify the default window size in points.
///
/// If a window is created and its size is not specified, this size will be used.
Expand Down

0 comments on commit 7d00e3c

Please sign in to comment.