#N canvas 277 124 807 512 10; #X declare -lib Gem; #X text 6 -12 Description: Controls the Gem window.; #X text 7 185 Clicking with the RIGHT mouse button in the Gem window will move the camera.; #X text 7 220 Double clicking with the RIGHT mouse button will reset the camera.; #X text 409 92 Outlet_1: Outputs the settings made to the Gem window. NOTE that this outlet is COMMON to all gems.win.; #X text 412 136 Arguments (use none \, some or all of these):; #X text 7 255 Double clicking with the MIDDLE mouse button will destroy the window.; #X text 408 39 Inlet_1 (float): 1=Create and render. 0=Destroy. All of the standard Gem window commands can still be used (see gemwin's help for more information).; #X text 6 162 -- MOUSE CONTROLS (for Linux and Windows) --; #X text 434 196 /fps f: sets the Gem window framerate.; #X text 434 217 /border f: set the Gem window border presence.; #X text 5 3 tags: gems; #X obj 63 408 cube; #X obj 63 354 gemhead; #X obj 13 50 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1 ; #X msg 84 48 /dimen 640 480; #X obj 544 344 nbx 5 14 -1e+37 1e+37 0 0 \$0/gemsWin/fps \$0/gemsWin/fps_ /gemsWin/fps 57 7 0 10 -262144 -1 -1 20 256; #X obj 544 324 tgl 15 0 \$0/gemsWin/border \$0/gemsWin/border_ /gemsWin/border 17 7 0 10 -262144 -1 -1 1 1; #X obj 544 363 tgl 15 0 \$0/gemsWin/lighting \$0/gemsWin/lighting_ /gemsWin/lighting 17 7 0 10 -262144 -1 -1 1 1; #X obj 544 383 nbx 5 14 -1e+37 1e+37 0 0 \$0/gemsWin/w \$0/gemsWin/w_ /gemsWin/w 57 7 0 10 -262144 -1 -1 320 256; #X obj 544 403 nbx 5 14 -1e+37 1e+37 0 0 \$0/gemsWin/h \$0/gemsWin/h_ /gemsWin/h 57 7 0 10 -262144 -1 -1 240 256; #X obj 544 423 nbx 5 14 -1e+37 1e+37 0 0 \$0/gemsWin/x \$0/gemsWin/x_ /gemsWin/x 57 7 0 10 -262144 -1 -1 0 256; #X obj 544 443 nbx 5 14 -1e+37 1e+37 0 0 \$0/gemsWin/y \$0/gemsWin/y_ /gemsWin/y 57 7 0 10 -262144 -1 -1 0 256; #X obj 544 305 tgl 15 0 \$0/gemsWin/create \$0/gemsWin/create_ /gemsWin/create 17 7 0 10 -262144 -1 -1 0 1; #X text 433 158 /dimen Width Height: sets the Gem window dimension. ; #X text 434 177 /offset Width Height: sets the Gem window offset.; #X text 430 238 /lighting f: turns the lighting on/off; #X text 432 256 /anti-aliasing f: turns the antialiasing on/of; #X obj 183 333 gemhead; #X obj 183 364 rotateXYZ 30 30 0; #X msg 116 75 /lighting 0; #X obj 183 417 light; #X obj 235 419 loadbang; #X msg 236 443 1 1 0; #X obj 329 336 gemhead; #X obj 329 420 light; #X obj 381 422 loadbang; #X msg 382 446 0 1 0; #X obj 329 367 rotateXYZ -30 -45 0; #X obj 329 393 translateXYZ 0 0 5; #X obj 183 390 translateXYZ 0 0 5; #X obj 714 -5 import Gem; #X obj 8 112 mtl/gemsWin /dimen 320 240 /lighting 1; #X connect 12 0 11 0; #X connect 13 0 41 0; #X connect 14 0 41 0; #X connect 27 0 28 0; #X connect 28 0 39 0; #X connect 29 0 41 0; #X connect 31 0 32 0; #X connect 32 0 30 1; #X connect 33 0 37 0; #X connect 35 0 36 0; #X connect 36 0 34 1; #X connect 37 0 38 0; #X connect 38 0 34 0; #X connect 39 0 30 0;