Skip to main content

VideoTransitionPlugin

Trait VideoTransitionPlugin 

Source
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§

Source

fn on_draw(&mut self, crossfader: f32) -> Result<()>

Draw the video transition

Provided Methods§

Source

fn on_device_init(&mut self) -> Result<()>

Called when graphics device is initialized

Source

fn on_device_close(&mut self) -> Result<()>

Called when graphics device is closed

Source

fn width(&self) -> i32

Get video width

Source

fn height(&self) -> i32

Get video height

Source

fn sample_rate(&self) -> i32

Get the sample rate

Source

fn song_bpm(&self) -> i32

Get the song BPM

Source

fn song_pos_beats(&self) -> f64

Get the song position in beats

Implementors§