aboutsummaryrefslogtreecommitdiff
path: root/Gem/gemframebuffer-help.pd
diff options
context:
space:
mode:
Diffstat (limited to 'Gem/gemframebuffer-help.pd')
-rw-r--r--Gem/gemframebuffer-help.pd196
1 files changed, 99 insertions, 97 deletions
diff --git a/Gem/gemframebuffer-help.pd b/Gem/gemframebuffer-help.pd
index ae0da6e..f01cad5 100644
--- a/Gem/gemframebuffer-help.pd
+++ b/Gem/gemframebuffer-help.pd
@@ -1,41 +1,42 @@
-#N canvas 125 98 893 604 10;
-#X obj 465 9 cnv 15 420 570 empty empty empty 20 12 0 14 -228992 -66577
+#N canvas 125 98 896 632 10;
+#X declare -lib Gem;
+#X obj 465 39 cnv 15 420 570 empty empty empty 20 12 0 14 -228992 -66577
0;
-#X obj 472 293 cnv 15 300 60 empty empty empty 20 12 0 14 -191407 -66577
+#X obj 472 323 cnv 15 300 60 empty empty empty 20 12 0 14 -191407 -66577
0;
-#X obj 474 18 cnv 15 400 250 empty empty empty 20 12 0 14 -24198 -66577
+#X obj 474 48 cnv 15 400 250 empty empty empty 20 12 0 14 -24198 -66577
0;
-#X obj 477 41 gemhead 20;
-#X obj 664 306 gemhead;
-#X msg 615 106 dimen 320 240;
-#X obj 477 468 rotateXYZ;
-#X floatatom 794 427 5 0 0 0 - - -;
-#X msg 762 114 color 0 0 1 0;
-#X msg 602 87 dimen 1024 1024;
-#X msg 751 74 color 0 0 0 0;
-#X obj 477 422 t a b;
-#X floatatom 717 469 5 0 0 0 - - -;
-#X msg 549 232 rectangle \$1;
-#X obj 549 214 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+#X obj 477 71 gemhead 20;
+#X obj 664 336 gemhead;
+#X msg 615 136 dimen 320 240;
+#X obj 477 498 rotateXYZ;
+#X floatatom 794 457 5 0 0 0 - - -;
+#X msg 762 144 color 0 0 1 0;
+#X msg 602 117 dimen 1024 1024;
+#X msg 751 104 color 0 0 0 0;
+#X obj 477 452 t a b;
+#X floatatom 717 499 5 0 0 0 - - -;
+#X msg 549 262 rectangle \$1;
+#X obj 549 244 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
-#X msg 509 101 type FLOAT;
-#X obj 664 274 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+#X msg 509 131 type FLOAT;
+#X obj 664 304 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
-#X obj 477 382 translateXYZ 0 0 -4;
-#X obj 477 298 gemframebuffer;
-#X obj 664 331 pix_texture;
-#X obj 664 358 t a b;
-#X msg 531 187 texunit \$1;
-#X msg 495 62 type BYTE;
-#X msg 503 82 type INT;
-#X msg 658 179 format YUV;
-#X msg 649 158 format RGB;
-#X msg 668 200 format RGBA;
-#X msg 680 220 format RGB32;
-#X obj 664 487 square 2;
-#X obj 664 449 rotateXYZ -40 0 200;
-#X floatatom 707 429 5 0 0 0 - - -;
-#X obj 477 487 pqtorusknots;
+#X obj 477 412 translateXYZ 0 0 -4;
+#X obj 477 328 gemframebuffer;
+#X obj 664 361 pix_texture;
+#X obj 664 388 t a b;
+#X msg 531 217 texunit \$1;
+#X msg 495 92 type BYTE;
+#X msg 503 112 type INT;
+#X msg 658 209 format YUV;
+#X msg 649 188 format RGB;
+#X msg 668 230 format RGBA;
+#X msg 680 250 format RGB32;
+#X obj 664 517 square 2;
+#X obj 664 479 rotateXYZ -40 0 200;
+#X floatatom 707 459 5 0 0 0 - - -;
+#X obj 477 517 pqtorusknots;
#N canvas 0 50 450 300 rotation 0;
#X obj 33 19 inlet;
#X obj 33 110 % 360;
@@ -65,8 +66,8 @@
#X connect 9 0 12 0;
#X connect 11 0 5 0;
#X connect 12 0 8 0;
-#X restore 509 443 pd rotation;
-#X floatatom 531 167 5 0 0 0 - - -;
+#X restore 509 473 pd rotation;
+#X floatatom 531 197 5 0 0 0 - - -;
#N canvas 125 50 450 300 rotation 0;
#X obj 112 29 inlet;
#X obj 112 105 % 360;
@@ -78,23 +79,23 @@
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 4 0 1 0;
-#X restore 794 402 pd rotation;
-#X obj 762 93 loadbang;
-#X obj 477 402 color 1 0 0;
-#X obj 649 245 t a;
-#X obj 585 124 t a;
-#X obj 751 135 t a;
-#X obj 495 130 t a;
-#X floatatom 563 361 5 0 0 0 - - -;
-#X floatatom 607 362 5 0 0 0 - - -;
-#X floatatom 520 361 5 0 0 0 - - -;
-#X obj 495 154 t a;
-#X obj 470 514 cnv 15 410 60 empty empty empty 20 12 0 14 -195568 -66577
+#X restore 794 432 pd rotation;
+#X obj 762 123 loadbang;
+#X obj 477 432 color 1 0 0;
+#X obj 649 275 t a;
+#X obj 585 154 t a;
+#X obj 751 165 t a;
+#X obj 495 160 t a;
+#X floatatom 563 391 5 0 0 0 - - -;
+#X floatatom 607 392 5 0 0 0 - - -;
+#X floatatom 520 391 5 0 0 0 - - -;
+#X obj 495 184 t a;
+#X obj 470 544 cnv 15 410 60 empty empty empty 20 12 0 14 -195568 -66577
0;
-#X msg 757 544 color 0 0 0 0;
-#X msg 746 522 color 0 1 1 0;
-#X msg 637 525 lighting \$1;
-#X obj 615 526 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+#X msg 757 574 color 0 0 0 0;
+#X msg 746 552 color 0 1 1 0;
+#X msg 637 555 lighting \$1;
+#X obj 615 556 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#N canvas 0 50 450 300 gemwin 0;
#X obj 132 136 gemwin;
@@ -118,64 +119,65 @@
#X connect 7 1 5 0;
#X connect 7 2 0 0;
#X connect 8 0 9 0;
-#X restore 473 554 pd gemwin;
-#X msg 473 529 destroy;
-#X text 471 513 Create window:;
-#X obj 637 552 t a;
-#X text 476 22 Example:;
-#X text 379 -10 GEM object;
-#X obj 7 41 cnv 15 450 130 empty empty empty 20 12 0 14 -233017 -66577
+#X restore 473 584 pd gemwin;
+#X msg 473 559 destroy;
+#X text 471 543 Create window:;
+#X obj 637 582 t a;
+#X text 476 52 Example:;
+#X text 699 10 GEM object;
+#X obj 7 71 cnv 15 450 130 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 7 208 cnv 15 450 370 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 7 238 cnv 15 450 370 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X text 10 214 Inlets:;
-#X obj 7 175 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
+#X text 10 244 Inlets:;
+#X obj 7 205 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
-#X text 14 174 Arguments:;
-#X text 28 233 Inlet 1: gemlist;
-#X text 15 523 Outlets:;
-#X text 31 539 Outlet 1: gemlist;
-#X text 60 187 <none>;
-#X text 102 -1 Synopsis: [gemframebuffer];
-#X text 122 15 Class: framebuffer object;
-#X text 12 50 Description: Renders a scene in a texture \, for later
+#X text 14 204 Arguments:;
+#X text 28 263 Inlet 1: gemlist;
+#X text 15 553 Outlets:;
+#X text 31 569 Outlet 1: gemlist;
+#X text 60 217 <none>;
+#X text 102 29 Synopsis: [gemframebuffer];
+#X text 122 45 Class: framebuffer object;
+#X text 12 80 Description: Renders a scene in a texture \, for later
use.;
-#X text 12 68 this example renders a scene (pqtorusknots) into a framebuffer
+#X text 12 98 this example renders a scene (pqtorusknots) into a framebuffer
\, which is then used as a texture onto a square.;
-#X text 13 98 you need framebuffer support (and its driver) on your
+#X text 13 128 you need framebuffer support (and its driver) on your
gfx-card;
-#X text 28 247 Inlet 1: message: type [BYTE | INT | FLOAT];
-#X text 27 315 Inlet 1: message: dimen <x> <y>;
-#X text 27 349 Inlet 1: message: color <r> <g> <b> <a>;
-#X text 26 430 Inlet 1: message: texunit <f>;
-#X text 27 280 Inlet 1: message: format [RGB|RGBA|RGB32|YUV];
-#X text 26 385 Inlet 1: message: rectangle [0|1];
-#X text 103 262 (type of the framebuffer data);
-#X text 102 330 (dimension of the framebuffer texture);
-#X text 106 465 (useful only with shader);
-#X text 106 448 (change texunit of the texture);
-#X text 104 402 (texturing mode \; rectangle (1) or normalized (0))
+#X text 28 277 Inlet 1: message: type [BYTE | INT | FLOAT];
+#X text 27 345 Inlet 1: message: dimen <x> <y>;
+#X text 27 379 Inlet 1: message: color <r> <g> <b> <a>;
+#X text 26 460 Inlet 1: message: texunit <f>;
+#X text 27 310 Inlet 1: message: format [RGB|RGBA|RGB32|YUV];
+#X text 26 415 Inlet 1: message: rectangle [0|1];
+#X text 103 292 (type of the framebuffer data);
+#X text 102 360 (dimension of the framebuffer texture);
+#X text 106 495 (useful only with shader);
+#X text 106 478 (change texunit of the texture);
+#X text 104 432 (texturing mode \; rectangle (1) or normalized (0))
;
-#X text 100 296 (color format of the framebuffer);
-#X text 102 365 (background color of the framebuffer);
-#X obj 556 41 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+#X text 100 326 (color format of the framebuffer);
+#X text 102 395 (background color of the framebuffer);
+#X obj 556 71 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
-#X floatatom 493 323 5 0 0 0 - - -;
-#X obj 477 342 scaleXYZ;
-#X floatatom 563 326 5 0 0 0 - - -;
-#X floatatom 528 325 5 0 0 0 - - -;
-#X msg 585 30 perspec -1 1 -1 1 1 20;
-#X msg 593 56 perspec -1 1 -1 1 3 75;
-#X text 98 497 (frustum of the framebuffer);
-#X text 752 29 default;
-#X text 11 130 NOTE: the default view-point of [gemframebuffer] is
+#X floatatom 493 353 5 0 0 0 - - -;
+#X obj 477 372 scaleXYZ;
+#X floatatom 563 356 5 0 0 0 - - -;
+#X floatatom 528 355 5 0 0 0 - - -;
+#X msg 585 60 perspec -1 1 -1 1 1 20;
+#X msg 593 86 perspec -1 1 -1 1 3 75;
+#X text 98 527 (frustum of the framebuffer);
+#X text 752 59 default;
+#X text 11 160 NOTE: the default view-point of [gemframebuffer] is
at the origin 0/0/0 \, unlike [gemwin] where it is at 0/0/4. You might
want to manually insert a [translateXYZ 0 0 -4].;
-#X text 23 482 Inlet 1: message: perspec <left><right><bottom><top><near>
+#X text 23 512 Inlet 1: message: perspec <left><right><bottom><top><near>
;
-#X text 428 482 <far>;
-#X text 31 557 Outlet 2: texture info : <id> <width> <height> <type>
+#X text 428 512 <far>;
+#X text 31 587 Outlet 2: texture info : <id> <width> <height> <type>
<0.>;
+#X obj 778 8 declare -lib Gem;
#X connect 3 0 18 0;
#X connect 4 0 19 0;
#X connect 5 0 38 0;