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

104 SunCGI Reference Manual Output Aspects of SunCore not Supported by SunCGI SunCGI does not support 3D output primitives, current position, or textured color lookup tables for monochrome devices. Since 3D output primitives are not supported, no shading or li~ting functions are provided either. Furthermore, no rotation or translation functions are provided. Therefore, if you want to rotate a geometrical output primitive, these operations must be done by your application program. 0 Since SunCGI does not maintain the current position of the output 'cursor', rela- tive drawing functions such as polygon_rel_3 are not supported.

However, the application programmer can implement this function by specifying all coordi- nates as a base register plus a constant. The base register can be used by the application program to maintain the value of the current position. For monochrome devices, SunCore interprets the entries in the color lookup table with indices greater than one as patterns. SunCGI interprets all color lookup table entries greater than zero as black. Patterns in SunCGI are explicitly specified in the pattern table and invoked by using the PA1TERN or HATCH inte- rior styles. In addition, while patterns in SunCore are all 4 x 4 matrices, patterns in Sun CG I have variable dimensions.

Output Features of SunCGI not Available in SunCore SunCGI offers geometrical and raster primitives not available in Sun Core, as well as increased control over the drawing of text. SunCGI provides circles and ellipses. SunCGI also supports the cell array which is a raster array whose ele- ment size is a function of the screen size. SunCGI clips characters in parts if the text precision is set to STROKE. 0 A.2. Segmentation SunCGI does not support segmentation. This effect influences the effect of attri- bute calls. In SunCore, some attributes (for example, highlighting) apply to entire segments. Since no concept of segmentation exists in SunCGI, these attri- butes are not offered.

Furthermore, SunCGI does not allow the saving or restor- ing of segments to the screen, so screen repainting functions must be completely defined by the application program, unless the view surface is initialized as a retained view surface and is not resized. A.3. Differences in Input Functions between SunCore and SunCGI SunCore provides device-specific functions for setting input device parameters and reading input from them. SunCGI provides no device dependent calls. SunCGI has three methods for obtaining the measure of input devices 1. by first activation (REQUEST EVENT}, 2. by most recent activation (RESPOND EVENT}, or 3. by mediating input requests through the event queue (QUEUE EVENT).

Furthermore, SunCGI allows the explicit binding of triggers (physical input dev- ices) to logical input devices. 0 Version C of 17 March 1986