bevy/examples/window/window_settings.rs
Daniel Jordaan 8b6556c750
Fix unresolved import in window settings example (#311)
Got an unresolved import of 'bevy_window' with the window settings example. Hopefully this is the correct way to resolve it.
2020-08-23 23:55:06 -07:00

17 lines
497 B
Rust

use bevy::{prelude::*, window::WindowMode};
/// This example illustrates how to customize the default window settings
fn main() {
App::build()
.add_resource(WindowDescriptor {
title: "I am a window!".to_string(),
width: 300,
height: 300,
vsync: true,
resizable: false,
mode: WindowMode::Fullscreen { use_size: false },
..Default::default()
})
.add_default_plugins()
.run();
}