use crate::*;
#[derive(Clone, Debug)]
pub struct RenderSettings {
pub background_color: Color,
pub fullscreen: bool,
pub resolution: (u32, u32),
pub high_dpi: bool,
pub resizable_window: bool,
pub present_mode: PresentMode,
pub frustrum_culling: bool,
pub pixel_snap: bool,
}
impl Default for RenderSettings {
fn default() -> RenderSettings {
RenderSettings {
background_color: CORNFLOWER_BLUE,
fullscreen: false,
resolution: (800, 600),
high_dpi: false,
present_mode: wgpu::PresentMode::AutoVsync,
resizable_window: true,
frustrum_culling: true,
pixel_snap: true,
}
}
}