1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXPokeDstAlpha</title> 10</head> 11 12<body> 13 14<h1 align="left">GXPokeDstAlpha</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXPokeDstAlpha( <a href="../Enumerated_Types/GXBool.html">GXBool</a> enable, u8 alpha ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>enable</TH> 27<TD>When <SPAN class="argument">enable</SPAN> is <CODE>GX_TRUE</CODE>, and the <A href="../PixelProc/GXSetPixelFmt.html">pixel format</A> in the frame buffer supports alpha, <SPAN class="argument">alpha</SPAN> will be written to the frame buffer.</TD> 28 </tr> 29 <tr> 30<TH>alpha</TH> 31<TD>Constant alpha value.</TD> 32 </tr> 33</TABLE> 34 35<h2>Return Values</h2> 36<p>None.</p> 37 38<H2>Description</H2> 39<P>This function sets a constant alpha value for writing to the embedded frame buffer (EFB) using the <CODE>GXPoke*</CODE> functions. The <CODE>GXPoke*</CODE> functions allow the CPU direct access to the EFB. The EFB pixel type must have an alpha channel for this function to be effective. For more information, see <a href="../PixelProc/GXSetPixelFmt.html"><code>GXSetPixelFmt</code></a>. The blending operations (see the <A href="GXPokeBlendMode.html"><CODE>GXPokeBlendMode</CODE></A> function) still use source alpha. However, when writing the pixel color, the constant <SPAN class="argument">alpha</SPAN> will replace the pixel alpha in the EFB.</P> 40 41<h2>See Also</h2> 42<P class="reference"> 43<A href="GXPokeARGB.html">GXPokeARGB</A> 44</P> 45 46<H2>Revision History</H2> 47<P> 482006/03/01 Initial version.<br> 49</P> 50 51<hr><p>CONFIDENTIAL</p></body> 52</HTML>