#N canvas 50 237 711 539 10;
#X declare -lib Gem;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 330 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 37 195 Inlets:;
#X text 453 355 Outlets:;
#X text 461 366 Outlet 1: gemlist;
#X obj 8 161 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 160 Arguments:;
#X obj 8 76 cnv 15 430 80 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 77 cnv 15 250 250 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 60 Example:;
#X text 71 31 Class: manipulation object;
#X obj 451 197 cnv 15 80 60 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 579 186 color 1 0 0 0.5;
#X text 60 219 Inlet 1: float: turn alpha blending on/off (default:1);
#X text 50 12 Synopsis: [alpha];
#X text 29 77 Description: enable alpha blending;
#X obj 458 310 square;
#X obj 458 233 alpha;
#X obj 458 108 color 0 1 0 0.5;
#X text 61 208 Inlet 1: gemlist;
#X text 60 231 Inlet 1: message "auto 1" | "auto 0" turn on/off automatic depth detection;
#X floatatom 583 139 5 0 0 0 - - - 0;
#X obj 458 86 gemhead 51;
#X obj 579 211 sphere;
#X obj 458 137 rotate 114 0 1 0;
#X obj 579 162 gemhead 50;
#X msg 474 176 auto \$1;
#X obj 474 158 tgl 15 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000 0 1;
#X msg 583 108 0 1 0 \$1;
#X floatatom 583 88 5 0 1 0 - - - 0;
#X obj 628 88 hsl 64 15 0 1 0 0 empty empty empty -2 -8 0 10 #fcfcfc #000000 #000000 0 1;
#X text 22 91 [alpha] turns on and off alpha blending. Be aware that the rendering order matters \, so you probably want to set the gemhead order number high so that the object is rendered after all of the non-alpha blended ones.;
#X text 63 171 float : blending function (default:GL_ONE_MINUS_SRC_ALPHA);
#X text 60 260 Inlet 2: float: blending function;
#X text 70 272 0=GL_ONE_MINUS_SOURCE_ALPHA;
#X text 70 282 1=GL_ONE;
#X text 70 294 2=GL_ZERO;
#X text 70 306 3=GL_SRC_COLOR;
#X text 70 318 4=GL_ONE_MINUS_SRC_COLOR;
#X text 70 330 5=GL_DST_COLOR;
#X text 70 342 6=GL_ONE_MINUS_DST_COLOR;
#X text 70 354 7=GL_SRC_ALPHA;
#X text 70 366 8=GL_ONE_MINUS_SRC_ALPHA;
#X text 70 378 9=GL_DST_ALPHA;
#X text 70 390 10=GL_ONE_MINUS_DST_ALPHA;
#X text 70 402 11=GL_CONSTANT_COLOR;
#X text 70 414 12=GL_ONE_MINUS_CONSTANT_COLOR;
#X text 70 426 13=GL_CONSTANT_ALPHA;
#X text 70 438 14=GL_ONE_MINUS_CONSTANT_ALPHA;
#X text 70 450 15=GL_SRC_ALPHA_SATURATE;
#X text 70 462 16=GL_SRC1_COLOR;
#X text 70 474 17=GL_ONE_MINUS_SRC1_COLOR;
#X text 70 486 18=GL_SRC1_ALPHA;
#X text 70 498 19=GL_ONE_MINUS_SRC1_ALPHA;
#X obj 477 210 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X floatatom 501 210 2 0 19 0 - - - 0;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION enable alpha blending;
#X text 10 65 KEYWORDS Gem openGL transformation;
#X text 20 85 INLET_0 gemlist float message;
#X text 20 105 INLET_1 float;
#X text 20 125 OUTLET_0 gemlist;
#X text 10 145 AUTHOR IOhannes m zmölnig;
#X text 10 165 LICENSE GPL-2.0-or-later;
#X restore 588 8 pd META;
#X obj 588 271 _gemwin;
#X connect 12 0 23 0;
#X connect 17 0 16 0;
#X connect 18 0 24 0;
#X connect 21 0 24 1;
#X connect 22 0 18 0;
#X connect 24 0 17 0;
#X connect 25 0 12 0;
#X connect 26 0 17 0;
#X connect 27 0 26 0;
#X connect 28 0 18 1;
#X connect 29 0 28 0;
#X connect 30 0 29 0;
#X connect 54 0 17 0;
#X connect 55 0 17 1;
