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
17<h2>C Specification</h2>
18
19<dl>
20<dd><PRE><CODE>#include &lt;revolution/gx.h&gt;</CODE></PRE></dd>
21<dd><pre>void GXPokeDstAlpha( <a href="../Enumerated_Types/GXBool.html">GXBool</a> enable, u8 alpha );</pre></dd>
22</dl><h2>Arguments</h2>
23<TABLE border="1" cellpadding="3" cellspacing="0.1">
24  <tr>
25<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>enable</font></strong></em></TD>
26<TD width="520">When <code><em><strong>enable</strong></em>=GX_TRUE</code>, and the <a href="../PixelProc/GXSetPixelFmt.html">pixel format</a> in the frame buffer supports destination alpha, <code><em><strong>alpha</strong></em></code> will be written to the frame buffer.</TD>
27    </tr>
28  <tr>
29<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>alpha</font></strong></em></TD>
30<TD width="520">Constant alpha value.</TD>
31    </tr>
32</TABLE>
33<h2>Return Values</h2>
34
35<p>None.</p>
36<H2>Description</H2>
37<P>This function sets a constant alpha value for writing to the Embedded Frame Buffer (EFB) using the <code>GXPoke</code>* functions.&nbsp;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 <a href="GXPokeBlendMode.html"><code>GXPokeBlendMode</code></a>) still use source alpha. However, when writing the pixel color, the constant <code><em><strong>alpha</strong></em></code> will replace the pixel alpha in the EFB.</P>
38
39
40
41
42<h2>See Also</h2>
43<P><A href="GXPokeARGB.html"><CODE>GXPokeARGB</CODE></A></P>
44<H2>Revision History</H2>
45<P>03/01/2006 Initial version.</P>
46</BODY>
47</HTML>
48