#include <revolution/gx.h>
void GXPokeAlphaMode(
GXCompare func,
u8 threshold );
| func | Compare function. Accepted values are:
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| threshold | Threshold to which source alpha is compared. |
None.
This function sets alpha and threshold value for pixels written to the embedded frame buffer (EFB) using the GXPoke* functions. The GXPoke* functions are for writing directly to the EFB from the CPU. Comparative functions are specified as follows.
src_alpha func thresholdsrc_alpha > 0x80Alpha comparative functions use the source alpha channel as a template and can be used for conditional writing of pixels to the EFB. When compare functions are true, the source color is written to the EFB based on the Z comparison results.( See the GXPokeZMode function.) No writes are performed when the alpha comparison functions are false.
Alpha comparison tests are processed before Z comparisons and blend processing.( See the GXPokeBlendMode function.)
2006/03/01 Initial version.
CONFIDENTIAL