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

0 4 Attributes The current attributes determine how output primitives are displayed. Attributes are not specific to any view surface, but affect all view surfaces. The default attributes are defined in Table 4-1. The current attributes may be set either indi- vidually or in groups (by changing the index into the bundle table). Example programs illustrating these methods of changing attributes are given in Figures 4-1 and 4-2. Each entry in the bundle table specifies a set of attributes for a particular type of primitive (for example, solid objects). The method for setting the current attri- butes depends on the state of the ASF (aspect source flag) for each attribute.

For individual attribute functions to have an effect, the ASF must be set to INDIV1- DUAL. If the ASF is set to BUNDLED, the current attribute is defined by the entry in the bundle table pointed to by the bundle index . The actual appearance of objects also depend on the global drawing mode described in Chapter 3. 0 The majority of this chapter is devoted to individual attribute functions. Indivi- dual attribute functions are grouped according to the output primitives they effect: polylines, polymarkers, filled objects, and text. The color_table function (which redefines color table entries) is also included in this chapter.

Finally, functions for obtaining the values of the current attributes are discussed. 0 53 Ver.;ion C of 17 March 1986