Trait FFGLInstance

Source
pub trait FFGLInstance {
    // Required methods
    fn get_param(&self, index: usize) -> f32;
    fn set_param(&mut self, index: usize, value: f32);
    fn draw(&mut self, inst_data: &FFGLData, frame_data: GLInput<'_>);
}
Expand description

This type is created once per instance of a plugin

Required Methods§

Source

fn get_param(&self, index: usize) -> f32

Source

fn set_param(&mut self, index: usize, value: f32)

Source

fn draw(&mut self, inst_data: &FFGLData, frame_data: GLInput<'_>)

Called by crate::conversions::Op::ProcessOpenGL to draw the plugin

Implementors§