#N canvas 396 100 600 375 10;
#X declare -lib Gem;
#X obj 210 252 gemhead;
#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 obj 423 193 gemhead;
#X obj 423 255 pix_texture;
#X msg 294 88 snap;
#X msg 275 56 bang;
#X msg 355 148 bang;
#X msg 328 120 bang;
#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 (see Gem.init) drawing!;
#X obj 488 8 declare -lib Gem;
#X obj 30 137 _gemwin \; 0 \; 0 \; dimen 256 256 \; buffer 1;
#X connect 0 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 10 0;
#X connect 5 0 11 0;
#X connect 6 0 10 0;
#X connect 7 0 0 0;
#X connect 8 0 4 0;
#X connect 9 0 19 0;
#X connect 10 0 5 0;
#X connect 11 0 12 0;
