[][src]Trait mandelbrot::views::view::FractalViewManager

pub trait FractalViewManager {
    fn new(device: &Device, size: LogicalSize) -> Self;
fn render(
        &mut self,
        device: &AtomicDevice,
        frame: &SwapChainOutput
    ) -> Vec<CommandBuffer>;
fn resized(
        &mut self,
        device: &AtomicDevice,
        window_size: &WindowSize
    ) -> Vec<CommandBuffer>;
fn mouse_input(&mut self, button: MouseButton, state: ElementState);
fn iterations(
        &mut self,
        device: &AtomicDevice,
        y_delta: f32
    ) -> Vec<CommandBuffer>;
fn set_julia(
        &mut self,
        device: &AtomicDevice,
        state: bool
    ) -> Option<Vec<CommandBuffer>>;
fn zoom(
        &mut self,
        device: &AtomicDevice,
        y_delta: f32
    ) -> Vec<CommandBuffer>;
fn new_position(
        &mut self,
        device: &AtomicDevice,
        x: f32,
        y: f32,
        active: bool
    ) -> Option<Vec<CommandBuffer>>;
fn create_render_pipeline(&mut self, device: &Device);
fn reload_fs(&mut self, device: &AtomicDevice); fn load_fs(path: &Path) -> Option<Vec<u32>> { ... } }

Required methods

fn new(device: &Device, size: LogicalSize) -> Self

fn render(
    &mut self,
    device: &AtomicDevice,
    frame: &SwapChainOutput
) -> Vec<CommandBuffer>

fn resized(
    &mut self,
    device: &AtomicDevice,
    window_size: &WindowSize
) -> Vec<CommandBuffer>

fn mouse_input(&mut self, button: MouseButton, state: ElementState)

fn iterations(
    &mut self,
    device: &AtomicDevice,
    y_delta: f32
) -> Vec<CommandBuffer>

fn set_julia(
    &mut self,
    device: &AtomicDevice,
    state: bool
) -> Option<Vec<CommandBuffer>>

fn zoom(&mut self, device: &AtomicDevice, y_delta: f32) -> Vec<CommandBuffer>

fn new_position(
    &mut self,
    device: &AtomicDevice,
    x: f32,
    y: f32,
    active: bool
) -> Option<Vec<CommandBuffer>>

fn create_render_pipeline(&mut self, device: &Device)

fn reload_fs(&mut self, device: &AtomicDevice)

Loading content...

Provided methods

fn load_fs(path: &Path) -> Option<Vec<u32>>

Load fragment shader.

Loading content...

Implementors

impl FractalViewManager for MandelbrotViewManager[src]

impl FractalViewManager for DoubleViewManager[src]

impl FractalViewManager for SwitchableViewManager[src]

Loading content...