I use a [pix_image] and a [pix_texture]
In the glsl examples that we got earlier, this branch came after the [glsl_propgram]
This patch lets you create a gem window and load an image onto a square:
#N canvas 594 525 584 536 10; #N canvas 811 737 462 312 gemwin 0; #X obj 117 128 gemwin; #X obj 215 76 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X msg 140 52 create; #X msg 133 23 ambient 0.2 0.2 0.9; #X msg 125 -2 lighting $1; #X obj 125 -24 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 148 79 destroy; #X msg 21 69 fullscreen $1; #X obj 33 40 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 286 26 select 1; #X obj 286 2 inlet; #X obj 125 -45 inlet; #X obj 137 206 pix_write; #X msg 183 131 file /Users/beau/test.tif; #X msg 42 129 bang; #X obj 123 163 gemhead 21; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 5 0 4 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X connect 8 0 7 0; #X connect 9 0 2 0; #X connect 9 0 1 0; #X connect 9 1 1 0; #X connect 9 1 6 0; #X connect 10 0 9 0; #X connect 11 0 5 0; #X connect 13 0 12 0; #X connect 14 0 12 0; #X connect 15 0 12 0; #X restore 59 -38 pd gemwin; #X obj 59 -63 tgl 15 0 empty empty lighting 0 -6 0 8 -262144 -1 -1 0 1; #X obj 117 -64 tgl 15 0 empty empty Render 0 -6 0 8 -262144 -1 -1 0 1; #X obj 190 -61 gemhead 10; #X obj 275 207 translateXYZ; #X obj 323 299 scaleXYZ; #X obj 326 327 square; #X obj 258 100 pix_texture; #X obj 232 55 pix_image; #X floatatom 298 125 5 0 0 0 - - -; #X obj 292 160 * 0.1; #X floatatom 350 123 5 0 0 0 - - -; #X obj 345 158 * 0.1; #X floatatom 398 135 5 0 0 0 - - -; #X obj 397 158 * 0.1; #X obj 320 230 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0 256; #X obj 386 230 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0 256; #X obj 319 251 * 0.1; #X obj 386 250 * 0.1; #X obj 451 228 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0 256; #X obj 451 250 * 0.1; #X obj 313 -49 openpanel; #X msg 294 -7 open $1; #X obj 328 -84 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X connect 1 0 0 0; #X connect 2 0 0 1; #X connect 3 0 8 0; #X connect 4 0 5 0; #X connect 5 0 6 0; #X connect 7 0 4 0; #X connect 8 0 7 0; #X connect 9 0 10 0; #X connect 10 0 4 1; #X connect 11 0 12 0; #X connect 12 0 4 2; #X connect 13 0 14 0; #X connect 14 0 4 3; #X connect 15 0 17 0; #X connect 16 0 18 0; #X connect 17 0 5 1; #X connect 18 0 5 2; #X connect 19 0 20 0; #X connect 20 0 5 3; #X connect 21 0 22 0; #X connect 22 0 8 0; #X connect 23 0 21 0;