aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/14.multiple_windows
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2019-02-07 23:02:34 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2019-02-07 23:02:34 +0000
commit4f2a18125b4558c4c63daf5dacd9173c08b34fcf (patch)
treeebad5c03b60295396fe699b3038239e485032183 /Gem/examples/14.multiple_windows
parent2d50e14a3be3d93d9dcf72998691f0f6f0e7c771 (diff)
Gem 6ea7a457bfdbafb64c4123cb12882643bcf4109f linux/amd64
built 'master:6ea7a457bfdbafb64c4123cb12882643bcf4109f' for linux/amd64
Diffstat (limited to 'Gem/examples/14.multiple_windows')
-rw-r--r--Gem/examples/14.multiple_windows/01.basic_example.pd18
-rw-r--r--Gem/examples/14.multiple_windows/02.switch_context.pd4
-rw-r--r--Gem/examples/14.multiple_windows/03.texture_sharing.pd44
3 files changed, 37 insertions, 29 deletions
diff --git a/Gem/examples/14.multiple_windows/01.basic_example.pd b/Gem/examples/14.multiple_windows/01.basic_example.pd
index 0b168d7..7e9f8d7 100644
--- a/Gem/examples/14.multiple_windows/01.basic_example.pd
+++ b/Gem/examples/14.multiple_windows/01.basic_example.pd
@@ -1,4 +1,5 @@
#N canvas 60 711 828 296 10;
+#X declare -lib Gem;
#X obj 88 241 gemwin 20 a;
#X obj 295 79 square;
#X obj 295 49 color 1 0 0 1;
@@ -7,23 +8,24 @@
#X obj 94 25 gemhead a;
#X msg 88 199 title a \, create \, 1;
#X msg 268 199 title b \, create \, 1;
-#X obj 223 158 b;
#X obj 223 138 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 240 136 create window;
-#X text 405 85 You can have multiple window and display different
-things on each.;
+#X text 405 85 You can have multiple window and display different things
+on each.;
#X obj 268 241 gemwin 20 b;
#X text 405 119 Basically \, use [gemwin fps context_name] to create
a named context then use [gemhead context_name] to render to this context
only.;
#X obj 295 27 gemhead b;
+#X obj 710 6 declare -lib Gem;
+#X obj 223 158 t b b;
#X connect 2 0 1 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 0 0;
-#X connect 7 0 12 0;
-#X connect 8 0 6 0;
-#X connect 8 0 7 0;
-#X connect 9 0 8 0;
-#X connect 14 0 2 0;
+#X connect 7 0 11 0;
+#X connect 8 0 15 0;
+#X connect 13 0 2 0;
+#X connect 15 0 6 0;
+#X connect 15 1 7 0;
diff --git a/Gem/examples/14.multiple_windows/02.switch_context.pd b/Gem/examples/14.multiple_windows/02.switch_context.pd
index eed7da9..f3b9e20 100644
--- a/Gem/examples/14.multiple_windows/02.switch_context.pd
+++ b/Gem/examples/14.multiple_windows/02.switch_context.pd
@@ -1,4 +1,5 @@
#N canvas 62 735 655 237 10;
+#X declare -lib Gem;
#X obj 33 129 gemwin 20 a;
#X obj 396 181 square;
#X obj 396 159 color 0 0 1 1;
@@ -13,8 +14,9 @@
#X text 185 24 1 create windows;
#X text 411 24 2 switch between rendering context;
#X msg 475 106 set \$1;
-#X floatatom 475 88 5 0 0 0 - - -, f 5;
+#X floatatom 475 88 5 0 0 0 - - -;
#X msg 168 87 title b \, create \, 1 \, view 1 1 6;
+#X obj 40 206 declare -lib Gem;
#X connect 2 0 1 0;
#X connect 3 0 0 0;
#X connect 4 0 3 0;
diff --git a/Gem/examples/14.multiple_windows/03.texture_sharing.pd b/Gem/examples/14.multiple_windows/03.texture_sharing.pd
index 2864ac1..62f80cd 100644
--- a/Gem/examples/14.multiple_windows/03.texture_sharing.pd
+++ b/Gem/examples/14.multiple_windows/03.texture_sharing.pd
@@ -1,11 +1,11 @@
#N canvas 224 736 1147 233 10;
+#X declare -lib Gem;
#X obj 33 169 gemwin 20 a;
#X obj 396 181 square;
-#X obj 168 46 b;
-#X obj 168 26 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+#X obj 141 26 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 396 37 gemhead a;
-#X text 185 24 1 create windows;
+#X text 158 24 1 create windows;
#X obj 396 104 pix_texture;
#X obj 596 181 square;
#X obj 596 155 pix_texture;
@@ -15,7 +15,7 @@
#X obj 168 169 gemwin 20 b;
#X msg 596 4 context a;
#X msg 669 4 context b;
-#X msg 90 118 destroy;
+#X msg 80 118 destroy;
#X text 731 150 on Linux \, this is only supported by [gemglutwindow].
;
#X text 730 98 support for texture sharing is limited by Operating
@@ -23,19 +23,23 @@ System \, ggraphics hardware \, openGL implementation and the windowing
backend.;
#X msg 33 87 title a \, create \, 1;
#X msg 168 117 title b \, create \, 1;
-#X connect 2 0 18 0;
-#X connect 2 0 19 0;
-#X connect 3 0 2 0;
-#X connect 4 0 9 0;
-#X connect 6 0 1 0;
-#X connect 6 1 8 1;
-#X connect 8 0 7 0;
-#X connect 9 0 6 0;
-#X connect 10 0 8 0;
-#X connect 11 0 10 0;
-#X connect 13 0 11 0;
-#X connect 14 0 11 0;
-#X connect 15 0 12 0;
-#X connect 15 0 0 0;
-#X connect 18 0 0 0;
-#X connect 19 0 12 0;
+#X obj 1030 16 declare -lib Gem;
+#X obj 141 46 t b b;
+#X obj 80 141 t a a;
+#X connect 2 0 20 0;
+#X connect 3 0 8 0;
+#X connect 5 0 1 0;
+#X connect 5 1 7 1;
+#X connect 7 0 6 0;
+#X connect 8 0 5 0;
+#X connect 9 0 7 0;
+#X connect 10 0 9 0;
+#X connect 12 0 10 0;
+#X connect 13 0 10 0;
+#X connect 14 0 21 0;
+#X connect 17 0 0 0;
+#X connect 18 0 11 0;
+#X connect 20 0 17 0;
+#X connect 20 1 18 0;
+#X connect 21 0 0 0;
+#X connect 21 1 11 0;