0 1 Introduction SunCGI provides access to low-level graphics device functions without the res- trictions, benefits, or overhead of higher-level graphics packages like Sun Core. SunCGI is useful for 20 graphics programs which do not require segmentation or transformations. The absence of segmentation from SunCGI makes drawing diagrams faster and simpler, but does not provide automatic picture regeneration. SunCGI programs are usually smaller and more efficient than Sun Core pro- grams with similar functionality. In addition, SunCGI programs will run on Sun devices without explicitly specifying the device at compile time.
SunCGI pro- vides output primitives (for example, circles), attributes (for example, sophisti- cated pattern filling), and input primitives which are not offered by SunCore. The CG! standard is currently under development, and therefore, CG! has not been accepted by the X3H3 committee, ANSI, or the computer graphics community. Only cenain models within CG! are supported by SunCGI. Specifically SunCGI implements input option sets 1, 2, 3, 4, and 6 and output option sets I through 6 of the CG! standard. CG! does not support 30 output primitives.
0 SunCGI does provides output primitives, attribute selection, and input device management, at a level which is close to the actual device driver; thus affording speed and flexibility not offered by higher-level graphics packages like Sun Core. SunCGI provides output primitives which are not provided by any of the other Sun graphics packages: for example disjoint polygons, circles, ellipses, and cell arrays (which can be thought of as scaled and transformed pixel arrays). CG! also provides a larger vocabulary of attributes than SunCore. SunCGI also provides facilities for explicitly binding virtual input devices to physical input devices as well as explicit management of an event queue. I.I.
Using SunCGI Here is a SunCGI example application program written in C: 0 3 Version C of 17 March 1986