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

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

Required methods

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

fn data(&mut self) -> &mut FractalViewData

fn frag_shader_path(&self) -> &'static Path

Loading content...

Provided methods

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

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

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

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

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

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

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

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

Returns None if active is false. This is needed to save the previous position. Otherwise, on new drags there will be jumps.

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

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

Loading content...

Implementors

impl FractalViewable for MandelbrotOnlyView[src]

impl FractalViewable for JuliaDoubleView[src]

impl FractalViewable for MandelbrotDoubleView[src]

Loading content...