#include <revolution/gx.h>
void GXPokeBlendMode(
GXBlendMode type,
GXBlendFactor src_factor,
GXBlendFactor dst_factor,
GXLogicOp op );
| type | the 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 | the 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 the GXPoke* function, is blended with the current embedded frame buffer (EFB). No color data is written to the EFB when type is set to GX_CM_NONE. When type is set to GX_CM_BLEND, the source and EFB pixels are blended using the following equation:
dst_pix_clr = src_pix_clr * src_factor + dst_pix_clr * dst_factor
dst_factor can be used only when the frame buffer has a GX_PF_RGBA6_Z24 pixel format (see GXSetPixelFmt).
When type is set to GX_CM_LOGIC, the source and EFB pixels are blended using logical bitwise operations.
This function does not affect the normal rendering state, GXSetBlendMode.
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.
03/01/2006 Initial version.