Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

18 SunCGJ Reference Manual 0 #include main() { Cvwsurf device; Cint name; Ccoor dvl, dv2, lower, upper; NORMAL_VWSURF(device, PIXWINDD); dvl .x = 0; dvl.y O; dv2.x 200; dv2.y 200; lower.x lower.y upper.x upper.y = 30; /* rectangle coordinates*/ = 30; 70; 70; open_cgi(); open_vws(&name, &device); vdc_extent(&dvl, &dv2); rectangle(&upper, &lower) ; sleep(4); dvl.x = O; dvl.y O; dv2.x 100; dv2.y 100; vdc_extent (&dvl, &dv2); I* rectangle(&upper, &lower); sleep(4); dvl.x 20; dvl.y 20; dv2.x 80; dv2.y = 80; vdc_extent(&dvl, &dv2) ; /* rectangle(&upper, &lower) ; sleep(20); I* draw initial rectangle */ 0 center rectangle *I enlarge rectangle *I close_vws(name); close_cgi () ; Figure 2-2 Example Program with Multiple Normalization Transformations Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC.

0 EBADRCTD [20] Rectangle definition is invalid. Version C of 17 March 1986