1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

extern crate glutin_window;
extern crate shader_version;
extern crate window;

use glutin_window::GlutinWindow;
use shader_version::OpenGL;
use window::WindowSettings;

fn main() {
    let _ = GlutinWindow::new(
        &WindowSettings::new("Glutin Window", (640, 480))
            .fullscreen(false)
            .vsync(true)
            .graphics_api(OpenGL::V2_1) // etc
    ).unwrap();
}