Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

12 SunCGI Reference Manual 0 #include main () { Ccoor bot, top, center; Cint namel, name2, radius; Cvwsurf devicel, device2; bot.x = 5000; bot.y = 5000; center.x = 10000; center.y = 10000; radius= 5000; top.x = 15000; top.y = 15000; open_cgi (); NORMAL_VWSURF(devicel, PIXWINDD); open_vws(&narnel, &devicel); NORMAL_VWSURF(device2, PIXWINDD); open_vws(&narne2, &device2); rectangle(&bot, &top); deactivate_vws(narne2); circle(&center, radius); activate_vws(name2); circle(&center, 2*radius); 0 sleep(20); close_vws(narnel); close_vws(narne2); close_ cgi () ; Figure 2-1 Example Program with Multiple Workstations Open CGI (SunCGI Extension) Cerror open_cgi() open_ cgi initializes the state of SunCGI to CGOP (CGi OPen).

open_ cgi does not initialize input devices but does initialize the event queue . No other CG! functions can be used without generating an error if open_ cgi has not been called. SunCGI traps various signals as described in Section 2.3. Errors ENOTCGCL [!] CGI not in proper state: CGI shall be in state CGCL. 0 Version C of 17 March 1986