aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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)) {