WindowSizeDependent

Trait WindowSizeDependent 

Source
pub trait WindowSizeDependent {
    // Required method
    fn on_window_resize(&mut self, device: &Device, new_size: PhysicalSize<u32>);
}
Expand description

Something that needs remaking/resizing whenever the game window is resized

Required Methods§

Source

fn on_window_resize(&mut self, device: &Device, new_size: PhysicalSize<u32>)

Implementors§