#N canvas 498 71 602 776 8;
#X obj 160 69 gemwin 20;
#X text 161 23 gemwin;
#X text 97 43 access to the window manager;
#X text 66 91 gemwin controls the window manager. It passes various messages to the manager \, controlling the attributes of the window.;
#X text 63 143 The initial argument is the number of frames per second to render. The default value is 20 frames per second.;
#X text 61 325 The various messages are:;
#X text 61 360 1/0 : turn rendering on/off;
#X text 61 417 create : create the graphics window;
#X text 62 437 destroy : destroy the graphics window;
#X text 62 453 buffer 1/2 : single or double buffering;
#X text 61 472 dimen x y : the x and y dimensions of the window;
#X text 59 495 frame num : the number of frames per second to render at;
#X text 59 518 lighting 1/0 : turn lighting on/off;
#X text 57 565 ambient R G B : the ambient lighting color;
#X text 56 586 specular R G B : the specular lighting color;
#X text 57 606 shininess num : the shininess value;
#X text 57 629 reset : reset the graphics manager to the default values;
#X text 64 174 Editing at the same time as rendering is not encouraged and is a good way to generate a segmentation fault or core dump!;
#X text 59 542 color R G B : the background color of the window;
#X text 64 399 bang : clear the buffer (single buffer mode);
#X text 63 382 bang : swap the buffers (double buffer mode);
#X text 62 230 It is EXTREMELEY IMPORTANT that you turn on rendering before trying to draw anything \, including in single buffer mode. When rendering is turned on \, the gem objects establish a rendering network. When rendering is turned off \, they remove this network.;
#X text 58 654 fogmode 0/1/2/3 : set the fog mode (OFF/LINEAR/EXP/EXP^2);
#X text 55 710 fogcolor R G B : the color of the fog;
#X text 55 677 fog num : the fog density;
