#include <revolution/gx.h>
void GXPokeBlendMode(
GXBlendMode type,
GXBlendFactor src_factor,
GXBlendFactor dst_factor,
GXLogicOp op );
| type | Blend mode. Accepted values are:
|
||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| src_factor | Source coefficient. The pixel color generated by the GP is multiplied by this coefficient. Applicable values are indicated in the table below.
|
||||||||||||||||||||||||||||||||||
| dst_factor | Output coefficient. The current frame buffer pixel color is multiplied by this coefficient. Accepted values are:
|
||||||||||||||||||||||||||||||||||
| op | Blend processing. Applicable values and logical operations are indicated in the table below.
|
None.
This function determines how the source image, written with a GXPoke* function, is blended with the current embedded frame buffer (EFB). When type is set to GX_BM_NONE, color data is not written to the EFB. When type is set to GX_BM_BLEND, the source image and EFB pixels are blended according to the following equation:
dst_pix_clr = src_pix_clr * src_factor + dst_pix_clr * dst_factordst_factor can be used only when the frame buffer has a GX_PF_RGBA6_Z24 pixel format (see the GXSetPixelFmt function).
When type is set to GX_BM_LOGIC, the source and EFB pixels are blended using a logical bitwise operation.
This function does not affect the normal rendering state (see the GXSetBlendMode function).
When GX_BM_SUBTRACT is used for type, the destination pixel is calculated as follows:
dst_pix_clr = dst_pix_clr - src_pix_clr [clamped to zero]Be aware that src_factor and dst_factor are not part of the equation.
2007/02/19 Corrected typos.
2006/03/01 Initial version.
CONFIDENTIAL