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

Chapter I - Introduction 5 01.2. The SunCGI Lint Library SunCGI provides a lint library which provides type checking beyond the capa- bilities of the C compiler. For example, you could use the SunCGI lint library to check a program called glass. c with command like this: (%lint glass.c -lcgi J Note that the error messages that lint generates are mostly warnings, and may not necessarily have any effect on the operation of the program. For a detailed explanation of lint, see the lint chapter in the Programming Tools manual. 1.3. Overview of SunCGI This section provides an overview of the substance of this manual. The four major sections of the manual (which correspond to chapters) are:

1) view surface initialization and termination (control), 2) output primitives, 3) attributes, and 4) input. The overview of these chapters contains a brief introduction to the basic concepts of CG!. The appendices at the end of this manual provide quick reference tables and descriptions of the interfaces between SunCGI and 0 !) Sun View and 2) FORTRAN. Initialization and Termination Chapter 2 describes functions for !) initializing and terminating the entire SunCGI package and individual view surfaces, 2) defining the coordinate systems, 3) interface negotiation, and 4) signal trapping.

The first section Chapter 2 describes functions for opening and closing view sur- faces (which are either windows or screens). SunCGI provides facilities for writing primitives to multiple view surfaces. Output primitives can be written to a selected subset of the open view surfaces by using the activate_ vws and deactivate_ vws functions (which turn a view surface on or off without clos- ing the view surface or affecting the display). The functions discussed in Chapter 2 also define the range of virtual device coordinates (VDC space) and device coordinates (screen space). The coordinates of most SunCGI functions are expressed in terms of VDC space.

The limits of both VDC space and screen space can be defined by the application program. 0 If you are attempting to run an application program developed on another vendor's version of CGI, negotiation functions are provided which describe the capabilities of SunCGI. The application program can use the information obtained by using the negotiation functions to call appropriate functions in Version C ,r 17 March 1986