#N canvas 30 89 960 649 10;
#X declare -lib Gem;
#X text 742 8 GEM object;
#X obj 8 438 cnv 15 430 150 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 18 440 Inlets:;
#X text 18 558 Outlets:;
#X text 36 571 Outlet 1: gemlist;
#X obj 8 393 cnv 15 430 40 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 398 Arguments:;
#X obj 8 76 cnv 15 430 310 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 50 12 Synopsis: [gemhead];
#X text 71 31 Class: control object;
#X text 29 77 Description: start a rendering chain;
#X text 21 91 [gemhead] connects the gem objects to the window manager. The start of any gemList begins with the gemhead. Without the gemhead \, gem objects will not receive the render command.;
#X text 20 366 example: "1" before "50" before "-10" before "-23";
#X text 22 149 Any gem object connected after the gemhead will receive one render command per frame.;
#X text 20 294 The rendering-order value can also be negative. Negative numbered [gemhead]s will be rendered AFTER all positive [gemhead]s. Note \, that Higher values (-3) will be rendered BEFORE lower values (-10). [gemhead]s with negative numbers will NOT be affected by view-point changes !!!;
#X text 62 409 float : priority (default : 50);
#X text 42 471 Inlet 1: bang : force rendering now.;
#X text 42 453 Inlet 1: float (1/0): turn rendering on/off (default 1);
#X text 42 490 Inlet 1: set <priority> : change priority value of this chain.;
#X obj 442 74 cnv 15 160 240 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 451 79 enable/disable rendering;
#X obj 451 123 cnv 15 100 40 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X msg 470 240 gemList;
#X obj 470 134 gemhead;
#X msg 470 101 1;
#X msg 506 101 0;
#X obj 470 281 print ENABLE;
#X obj 470 199 square 0.5;
#X obj 606 74 cnv 15 160 240 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 770 74 cnv 15 160 240 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 617 81 force rendering;
#X text 789 79 set rendering order;
#X obj 621 128 cnv 15 100 40 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 781 135 cnv 15 100 40 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X msg 630 101 bang;
#X msg 791 101 set 45;
#X obj 791 286 print SETTABLE;
#X obj 630 284 print FORCEABLE;
#X msg 630 243 gemList;
#X msg 791 245 gemList;
#X obj 630 202 circle 0.5;
#X obj 791 204 triangle 0.5;
#X obj 791 144 gemhead 105;
#X text 21 188 All chain will be rendered one after the other. You can control precisely the rendering order by giving [gemhead] a priority value (argument or message). The default value is 50 The lower the value is \, the sooner the gemhead will receive the rendering command (a value of 1 is the lowest possible value). This value is important when you are doing alpha blending and for certain objects (such as light).;
#X obj 470 178 translateXYZ -2 0 0;
#X msg 854 101 set 105;
#X obj 630 181 translateXYZ 0 2 0;
#X obj 630 138 gemhead 50;
#X obj 791 183 translateXYZ 2 0 0;
#X text 42 520 Inlet 1: context <name> : change rendering context (for multiple windows).;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION start a rendering chain;
#X text 10 65 KEYWORDS Gem control;
#X text 20 85 INLET_0 float bang set context;
#X text 20 105 OUTLET_0 gemlist;
#X text 10 125 AUTHOR IOhannes m zmölnig;
#X text 10 145 LICENSE GPL-2.0-or-later;
#X restore 818 8 pd META;
#X obj 690 421 _gemwin 2;
#X connect 22 0 26 0;
#X connect 23 0 44 0;
#X connect 24 0 23 0;
#X connect 25 0 23 0;
#X connect 27 0 22 0;
#X connect 34 0 47 0;
#X connect 35 0 42 0;
#X connect 38 0 37 0;
#X connect 39 0 36 0;
#X connect 40 0 38 0;
#X connect 41 0 39 0;
#X connect 42 0 48 0;
#X connect 44 0 27 0;
#X connect 45 0 42 0;
#X connect 46 0 40 0;
#X connect 47 0 46 0;
#X connect 48 0 41 0;
