#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 threshold
for example:
src_alpha > 0x80
Alpha 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.)
03/01/2006 Initial version