The EZwgl supports logical operations when drawing into the front
buffer or a EZ_PIXMAP back buffer. Support for logical
operations in EZ_XIMAGE back buffer is not yet implemented.
The default logical operation is EZ_COPY.
void EZ_LogicOp(int op)
This function sets the current logical operation. Possible
logical operations are listed in the following table. In
this table, s is the incoming pixel value and d
is the pixel value stored in the framebuffer or the pixmap.
| Symbolic Name | Operation |
EZ_CLEAR | 0 |
EZ_AND | s |
EZ_AND_REVERSE | s |
EZ_COPY | s |
EZ_AND_INVERTED | s d |
EZ_NOOP | d |
EZ_XOR | s xor d |
EZ_OR | s d |
EZ_NOR | (s d) |
EZ_EQUIV | (s xor d) |
EZ_INVERT | d |
EZ_OR_REVERSE | s![]() d |
EZ_COPY_INVERTED | s |
EZ_OR_INVERTED | s d |
EZ_NAND | (s d) |
EZ_SET | 1 |