#include <revolution/gx.h>
void GXSetBlendMode(
GXBlendMode type,
GXBlendFactor src_factor,
GXBlendFactor dst_factor,
GXLogicOp op );
| type | the blend mode Accepted values are:
|
||||||||||||||||||||||||||||||||||
| src_factor | input coefficient The pixel color created by the graphics processor is multiplied by this coefficient. Acceptable values are as follows:
type is GX_BM_BLEND. |
||||||||||||||||||||||||||||||||||
| dst_factor | the output coefficient The current frame buffer pixel color is multiplied by this coefficient. Acceptable values are as follows:
type is GX_BM_BLEND. |
||||||||||||||||||||||||||||||||||
| op | blend processing The acceptable values and logical operations are as follows:
type is GX_BM_LOGIC. |
None.
This function determines how the source image, generated by the graphics processor, is blended with the embedded frame buffer (EFB). Be aware that color updates are be enabled by calling GXSetColorUpdate. When type is set to GX_BM_NONE, the source data is written directly to the EFB. When type is set to GX_BM_BLEND, the source and EFB pixels are blended using the following formulae.
dst_pix_clr = src_pix_clr * src_factor + dst_pix_clr * dst_factor
The GX_BL_DSTALPHA / GX_BL_INVDSTALPHA can be used only when the EFB is set to the GX_PF_RGBA6_Z24 pixel format (see GXSetPixelFmt). If the pixel format is GX_PF_RGBA6_Z24 then src_factor and dst_factor are also applied to the alpha channel. To write the alpha channel to the EFB you must call GXSetAlphaUpdate.
When type is set to GX_BM_LOGIC, the source and EFB pixels are blended using logical bitwise operations. You can't use both blending and logic operations at the same time.
GXSetPixelFmt
GXSetZMode
GXSetColorUpdate
GXSetAlphaUpdate
03/01/2006 Initial version.