From da5e3727193a6663d7633e561fa564d033ed1c61 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 7 Aug 2014 18:15:09 +0200 Subject: Multiwindow example now creates a third window --- examples/multiwindow.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs index 5bc1b07..4f58441 100644 --- a/examples/multiwindow.rs +++ b/examples/multiwindow.rs @@ -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)) { -- cgit v1.2.3