[−][src]Trait mandelbrot::views::view::FractalViewable
Required methods
fn new(device: &Device, size: LogicalSize) -> Self
fn data(&mut self) -> &mut FractalViewData
fn frag_shader_path(&self) -> &'static Path
Provided methods
fn render(
&mut self,
device: &AtomicDevice,
frame: &SwapChainOutput
) -> CommandBuffer
&mut self,
device: &AtomicDevice,
frame: &SwapChainOutput
) -> CommandBuffer
fn resized(
&mut self,
device: &AtomicDevice,
window_size: &WindowSize
) -> CommandBuffer
&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>
&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.