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

0 2 Initializing and Terminating SunCGI The current CG! standard does not provide functions for initializing and terminat- ing devices. ANSI CG! is intended to provide an interface for a single view sur- face (one per CG! instance). SunCGI extends CG! into the window environment by allowing a single CG! process to control multiple view surfaces. Six nonstan- dard functions open_cgi, close_cgi, open_vws, close_vws, activate vws, and deactivate vws are included in SunCGI. open_cgi-;ind close_cgi initialize and terminate the operation of the SunCGI package. A view surface is initialized and terminated with open_ vws and close_ vws. A view surface is automatically activated when it is opened.

SunCGI is capable of handling more than one view surface at once. Output pri- matives can be restricted from a view surface with deactivate_vws. 02.1. View Surface Initialization and Selection A view surface is automatically activated when it is opened. However, a view surface can be deactivated (with the deactivate_vws function) when the out- put stream is not intended to appear on all view surfaces. Subsequent calls to SunCGI output functions will not apply to deactivated view surfaces! until activate_vws is called again (see the following example). 0 l However, inputs can be received on deactivated view surfaces. 11 Version C of 17 March 1986