GA_mixCodesType

Declaration

typedef enum {
GA_R2_BLACK,
GA_R2_NOTMERGESRC,
GA_R2_MASKNOTSRC,
GA_R2_NOTCOPYSRC,
GA_R2_MASKSRCNOT,
GA_R2_NOT,
GA_R2_XORSRC,
GA_R2_NOTMASKSRC,
GA_R2_MASKSRC,
GA_R2_NOTXORSRC,
GA_R2_NOP,
GA_R2_MERGENOTSRC,
GA_R2_COPYSRC,
GA_R2_MERGESRCNOT,
GA_R2_MERGESRC,
GA_R2_WHITE,
GA_REPLACE_MIX = GA_R2_COPYSRC,
GA_AND_MIX = GA_R2_MASKSRC,
GA_OR_MIX = GA_R2_MERGESRC,
GA_XOR_MIX = GA_R2_XORSRC,
GA_NOP_MIX = GA_R2_NOP
} GA_mixCodesType

Prototype In

snap/graphics.h

Description

Logical mix operation codes for accelerated rendering functions that support mixes. The set of mix codes is the standard Microsoft Raster Operation (ROP2) codes between two values. We define our ROP2 codes as being between the source and destination pixels for blt's, between the foreground or background color and the destination pixels for solid and mono pattern fills and between the pattern pixels and the destination pixels for color pattern fills. It is up to the driver to do any necessary translation between these generic ROP2 codes and each different type of hardware mix code internally. Next to each code is the equivalent Microsoft defined ROP3 code between source and destination pixels.

Note: Some graphics controllers may not support all mix codes, so you must use the GetMixTable function to determine the set of mix codes that the controller supports. Setting a mix code that is not listed in the returned mix table will result in undefined behaviour.

Members

GA_R2_BLACK | 0
GA_R2_NOTMERGESRC | DSon
GA_R2_MASKNOTSRC | DSna
GA_R2_NOTCOPYSRC | Sn
GA_R2_MASKSRCNOT | SDna
GA_R2_NOT | Dn
GA_R2_XORSRC | DSx
GA_R2_NOTMASKSRC | DSan
GA_R2_MASKSRC | DSa
GA_R2_NOTXORSRC | DSxn
GA_R2_NOP | D
GA_R2_MERGENOTSRC | DSno
GA_R2_COPYSRC | S
GA_R2_MERGESRCNOT | SDno
GA_R2_MERGESRC | DSo
GA_R2_WHITE | 1
GA_REPLACE_MIX | Replace mode
GA_AND_MIX | AND mode
GA_OR_MIX | OR mode
GA_XOR_MIX | XOR mode
GA_NOP_MIX | Destination pixel unchanged

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com