bevy/examples/window/window_settings.rs

19 lines
504 B
Rust
Raw Normal View History

use bevy::prelude::*;
use bevy_window::WindowMode;
2020-07-28 20:43:07 +00:00
/// 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();
}