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

50 SunCGI Reference M.mual 0 Set Global Drawing Mode (SunCGI Extension) Cerror set_global_drawing_mode(combination) Ccombtype combination; /* combination rules*/ set_global_drawing_mode determines the current global drawing mode which in turn determines how all output primitives except bitblts are displayed. The combination argument determines how the source and destination pixrects are combined. If combination is equal to REPLACE (the default value) the output primitive replaces the destination background. If combination is equal to AND, OR, or XOR the output primitive and the information on the screen are combined in the indicated Boolean fashion.

If combination is equal to NOT, then the desti- nation is set to a bitwise NOT operation of the source pixrect Errors ENOTOPOP [5] CGI not in proper state CGI shall be in in state VDOP, VSOP, or VSAC. Inquire Drawing Mode Cerror inquire_drawing_mode(visibility, source, destination, combination) Cbmode *visibility; /* transparent or opaque*/ Cbitmaptype *source; /* NOT source bits*/ Cbitmaptype *destination; /* NOT destination bits*/ Ccombtype *combina~i·on; /* combination rules */ The inquire_drawing_mode returns the values of the four components of the current drawing mode . 0 Errors ENOTOPOP [5] CGI not in proper state CGI shall be in in state VDOP, VSOP, or VSAC.

0 Version C of 17 March 1986