56 SunCGI Reference Manual Cerror set_aspect_source_flags(flags) Cflaglist *flags; /* list of ASFs */ 0 Set Aspect Source Flags set_aspect_source_flags determines whether individual attributes are set individually or from bundle table entries. typedef struct { Cint n; Cint num[]; Casptype value[]; Cflaglist; The n element of the flags argument determines how many flags are to be set. The num array of the flags argument determines which flags are to be set. Flag numbers are provided in Table 4-2. Finally, the value array of the flags argument determines the values of the flags specified in num.
If a value is assigned to INDIVIDUAL, the individual attribute functions affect the current attri- bute. If the value of index is BUNDLED, calls to individual attribute functions have no effect . 12 The default bundle index is set to I (which initially contains the default value for the attributes specified in Table 4-1 ). The default value of all aspect source flags is INDIVIDUAL. Errors ENOTOPOP [5] CG! not in proper state CG! shall be in state VDOP, VSOP, or VSAC.
Attribute Source Flag Numbers 0 Table 4-2 Flag I Attribute I Flag I Attribute 0 line type 9 fill color 1 line width 10 perimeter type 2 line color 11 perimeter width 3 marker type 12 perimeter color 4 marker width 13 text font index 5 marker color 14 text precision 6 interior style 15 character expansion factor 7 hatch index 16 character spacing 8 pattern index 17 text color Define Bundle Index (SunCGI Extension) Cerror define_bundle_index(index, entry) Cint index; /* entry in attribute environment table*/ Cbunatt *entry; /* new attribute values*/ define_bundle_index defines an entry in the bundle table.
The type Cbunat t is a structure which contains elements corresponding to all the attri- butes. If the contents of a bundle table entry are changed, all subsequently drawn primitives use the information in the new entry, depending on the relevant aspect source flags. You should keep this fact in mind if you are designing display list traversal algorithms using SunCGI. 12 In fact, SunCGI currently produces error 30 when these individual attribute function is called while the 0 corresponding ASP is BUNDLED. Version C of 17 March 1986