File: gemwin.pd

package info (click to toggle)
gem 0.81-7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,856 kB
  • ctags: 3,032
  • sloc: cpp: 16,976; ansic: 3,450; sh: 1,901; lex: 1,098; makefile: 309
file content (23 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#N canvas 650 65 602 678 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.;