mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Multiwindow example now creates a third window
This commit is contained in:
@@ -5,6 +5,7 @@ extern crate gl;
|
||||
fn main() {
|
||||
let window1 = init::Window::new().unwrap();
|
||||
let window2 = init::Window::new().unwrap();
|
||||
let window3 = init::Window::new().unwrap();
|
||||
|
||||
spawn(proc() {
|
||||
run(window1, (0.0, 1.0, 0.0, 1.0));
|
||||
@@ -13,6 +14,10 @@ fn main() {
|
||||
spawn(proc() {
|
||||
run(window2, (0.0, 0.0, 1.0, 1.0));
|
||||
});
|
||||
|
||||
spawn(proc() {
|
||||
run(window3, (1.0, 0.0, 0.0, 1.0));
|
||||
});
|
||||
}
|
||||
|
||||
fn run(window: init::Window, color: (f32, f32, f32, f32)) {
|
||||
|
||||
Reference in New Issue
Block a user