#N canvas 1032 163 577 707 10;
#X text 52 31 [GEMgl...] - wrappers for openGL functions;
#X text 32 64 you can use "any" openGL-command (like "glBegin") as a Gem-object with a prepended "GEM" (like [GEMglBegin]);
#N canvas 735 461 450 300 online 0;
#X obj 41 26 inlet;
#X obj 41 49 t b;
#X msg 41 87 browse https://registry.khronos.org/OpenGL-Refpages/gl2.1/;
#X obj 41 110 pdcontrol;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X restore 397 142 pd online reference;
#X msg 397 121 bang;
#X text 44 116 as there are several hundred such objects \, they do not documented separately. Instead please consult your openGL book \, or the online reference:, f 55;
#X obj 61 352 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 67 358 _gemwin;
#X obj 290 277 gemhead;
#X obj 290 366 GEMglBegin GL_POLYGON;
#X obj 290 592 GEMglEnd;
#X obj 290 406 GEMglColor4f 1 0 0 1;
#X obj 290 466 GEMglColor4f 0 1 0 1;
#X obj 290 526 GEMglColor4f 0 0 1 1;
#X obj 290 336 GEMglShadeModel GL_SMOOTH;
#X obj 290 622 GEMglShadeModel GL_FLAT;
#X obj 290 429 GEMglVertex3f -2 -1 0;
#X obj 290 549 GEMglVertex3f 2 -1 0;
#X obj 290 490 GEMglVertex3f 0 2 0;
#X msg 397 190 bang;
#N canvas 1059 494 450 300 examples/09.openGL 0;
#X obj 41 26 inlet;
#X obj 41 49 t b;
#X obj 41 160 pdcontrol;
#X msg 41 72 dir;
#X obj 41 95 pdcontrol;
#X msg 41 118 browse \$1/../examples/09.openGL;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 2 0;
#X restore 397 211 pd examples/09.openGL;
#X text 49 186 Gem also comes with some examples on how to use those low-level wrappers:;
#X connect 3 0 2 0;
#X connect 7 0 13 0;
#X connect 8 0 10 0;
#X connect 9 0 14 0;
#X connect 10 0 15 0;
#X connect 11 0 17 0;
#X connect 12 0 16 0;
#X connect 13 0 8 0;
#X connect 15 0 11 0;
#X connect 16 0 9 0;
#X connect 17 0 12 0;
#X connect 18 0 19 0;
