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

64 SunCGI Reference Manual 0 #include Ccoor box[S] = { 10000,10000, 1QQQQ,2QQQQ t 2QQQQ,2QQQQ t 2QQQQ,1QQQQ t 10000, 10000 } ; Cint pattern[l6] = { 50, 75, 100, 125, 150, o, o, 175, 200, O, O, 225., 250, 275, 300, 325 } ; main() { Ccoorlist boxlist; Cint dx = 250, dy 250, index= 2, name; Cvwsurf device; boxlist.n = 5; boxlist.ptlist = box; NORMAL_VWSURF(device, PIXWINDD); open_cgi (); open_vws(&name, &device); 0 interior_style(PATTERN, ON); pattern_table(index, 4, 4, pattern); pattern_index(index); pattern_size(dx, dy); polygon(&boxlist); sleep(lO); close_vws(name); close_cgi(); Figure 4-2 Example Program with Bundled Attributes Hatch Index Cerror hatch_index(index) Cint index; /* HATCH index in the pattern table*/ hatch index determines which entry in the pattern table is used to fill solid objects when thejill style is set to HATCH.

The default hatch index is 0. An error is generated if index points to an undefined entry in the pattern table. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. 0 ~)sun ~ rncrosystems Version C of 17 March 1986