aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-08-07 18:15:09 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-08-07 18:15:09 +0200
commitda5e3727193a6663d7633e561fa564d033ed1c61 (patch)
tree7c81f2c19b8fe230ea74e9b6a5a1b56a90ab3d4c
parent01fd8b1d9e6a43cb8bcb01d7e9b5532578da0d28 (diff)
downloadglutin-da5e3727193a6663d7633e561fa564d033ed1c61.tar.gz
glutin-da5e3727193a6663d7633e561fa564d033ed1c61.zip
Multiwindow example now creates a third window
-rw-r--r--examples/multiwindow.rs5
1 files changed, 5 insertions, 0 deletions
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)) {