#N canvas 787 304 600 500 8;
#X obj 13 214 gemwin;
#X obj 210 252 gemhead;
#X msg 57 101 create;
#X msg 58 130 destroy;
#X msg 55 43 1;
#X msg 56 73 0;
#X obj 210 312 model ../data/venus.obj;
#X text 117 4 snap a portion of the graphics window into a texture;
#X obj 210 278 translateXYZ 0 0 2;
#X msg 125 160 dimen 256 256;
#X obj 423 193 gemhead;
#X obj 423 255 pix_texture;
#X msg 294 88 snap;
#X msg 124 133 buffer 1;
#X msg 275 56 bang;
#X msg 355 148 bang;
#X msg 328 120 bang;
#X obj 122 105 loadbang;
#X obj 423 226 pix_snap 0 0 256 256;
#X obj 423 284 rotateXYZ 0 45 25;
#X obj 423 317 square 4;
#X text 327 54 draw the model;
#X text 348 87 snap the frame buffer;
#X text 390 120 clear the frame buffer;
#X text 407 146 draw the snapped texture;
#X text 123 20 notice that this is using single buffered drawing!;
#X connect 1 0 8 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 8 0 6 0;
#X connect 9 0 0 0;
#X connect 10 0 18 0;
#X connect 11 0 19 0;
#X connect 12 0 18 0;
#X connect 13 0 0 0;
#X connect 14 0 1 0;
#X connect 15 0 10 0;
#X connect 16 0 0 0;
#X connect 17 0 13 0;
#X connect 17 0 9 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
