Appendix F - Using SunCGI and Pixwins 147 Q ~---------=T_a_b_le..,.F_-_1=-Li-·s_t_o_if_c_g_i_· p-w,F_u_nc_no_· _ns-- __ c_o_n_ti_n_u_ed---=---..,.-=---------, SunCGI Function Name I cgipw Function Name cgipw_text_alignment(desc, halign, valign, hcalind, vcalind) cgipw_text_bundle_index(desc, index) cgipw_text_color(desc, index) cgipw_text_font_index(desc, index) cgipw_text_J>recision(desc, ttyp) cgipw vdm text(desc, cl, flag, tstring) text_alignment(halign, valign, hcalind, vcalind) text_bundle_index(index) text_color(index) text_font_index(index) text_precision(ttyp) vdm text(cl, flag, tstring) Table F-2 SunCGI Functions not Compatible with cgipw Mode Function I Discussion clear_ control All clear extents are identical clip_indicator when cjlag is CLIP _RECTANGLE clip_rectangle Instead, use pw_region prior to open_cgi__pw Use close__pw_cgi Use close_cgi__pw use pw _ region prior to close_cgi close vws device_viewport 0 open_cgi open_vws partial_polygon open_cgi__pw Use open__pw_cgi Use open_cgi__pw global polygon list is freed aftercgipw__polygon cgipw's voe space is identi- cal to screen space vdc extent F.4.
Example Program Figure F-1 contains an example program that uses cgipw functions. This exam- ple uses retained pixwins to ease redisplay after window obstruction (see Section 2.3). This makes the program slower during image generation, because it writes both on the screen and onto a copy retained in memory. 0 Version C of 17 March 1986