pub trait VideoTransitionPlugin: PluginBase {
// Required method
fn on_draw(&mut self, crossfader: f32) -> Result<()>;
// Provided methods
fn on_device_init(&mut self) -> Result<()> { ... }
fn on_device_close(&mut self) -> Result<()> { ... }
fn width(&self) -> i32 { ... }
fn height(&self) -> i32 { ... }
fn sample_rate(&self) -> i32 { ... }
fn song_bpm(&self) -> i32 { ... }
fn song_pos_beats(&self) -> f64 { ... }
}Expand description
Video transition plugin trait
Required Methods§
Provided Methods§
Sourcefn on_device_init(&mut self) -> Result<()>
fn on_device_init(&mut self) -> Result<()>
Called when graphics device is initialized
Sourcefn on_device_close(&mut self) -> Result<()>
fn on_device_close(&mut self) -> Result<()>
Called when graphics device is closed
Sourcefn sample_rate(&self) -> i32
fn sample_rate(&self) -> i32
Get the sample rate
Sourcefn song_pos_beats(&self) -> f64
fn song_pos_beats(&self) -> f64
Get the song position in beats