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="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>G2S_SetBlendBrightnessExt</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G2S_SetBlendBrightnessExt <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<PRE> 20<CODE>#include <nitro/gx/g2.h></CODE><BR> 21<CODE>void G2S_SetBlendBrightnessExt(<BR> int plane1 /* GXBlendPlaneMask */,<BR> int plane2 /* GXBlendPlaneMask */,<BR> int ev1,<BR> int ev2,<BR> int brightness<BR>);<BR> 22</CODE></PRE></dd> 23</dl><h2>Arguments</h2> 24 25<table border="1" width="100%"> 26 27 <tr> 28<td width="13%"><CODE>plane1</CODE></td> 29<td width="87%">Selects the plane where the brightness will be changed (result of a logical OR with the <code>GXBlendPlaneMask</code> type values)</td> 30 </tr> 31 <TR> 32<TD><CODE>plane2</CODE></TD> 33<TD>Selects the screen where alpha-blending is performed on the translucent OBJ, bitmap OBJ, and 3D screen.</TD> 34 </TR> 35 <TR> 36<TD><CODE>ev1</CODE></TD> 37<TD>Alpha-blending coefficient for translucent OBJ, bitmap OBJ, and 3D screen. (0 ≤ <SPAN class="argument">ev1</SPAN> ≤ 31)</TD> 38 </TR> 39 <TR> 40<TD><CODE>ev2</CODE></TD> 41<TD>Alpha-blending coefficient for <SPAN class="argument">plane2</SPAN>. (0 ≤ <SPAN class="argument">ev2</SPAN> ≤ 31)</TD> 42 </TR> 43 <TR> 44<TD><CODE>brightness</CODE></TD> 45<TD>Specifies the coefficient to change the brightness of <em><strong><code>plane1</code></strong></em> (-16 ≤ <em><strong><code>brightness</code></strong></em> ≤ 16)</TD> 46 </TR> 47 </table> 48<h2>Return Values</h2> 49<p>None.</p> 50<H2>Description</H2> 51<P>If the value of <SPAN class="argument">ev1</SPAN> or <SPAN class="argument">ev2</SPAN> is greater than 16, the alpha-blending coefficient that is actually set is 16.<BR><BR>This function uses the sub 2D Engine to change the brightness of the plane that was specified by <em><strong><CODE>plane1</CODE></strong></em>. If <em><strong><code>brightness</code></strong></em> is positive, the brightness increases; if it is negative, the brightness decreases. Furthermore, alpha-blending is performed on the translucent OBJ, bitmap OBJ, 3D screen, and the screen specified by <em><strong><code>plane2</code></strong></em>. Refer to the <CODE><A href="G2S_SetBlendAlpha.html">G2S_SetBlendAlpha</A></CODE> function for details on the <code>GXBlendPlaneMask</code> type.</P> 52<h2>See Also</h2> 53<P><CODE><A href="G2S_BlendNone.html">G2S_BlendNone</A><BR> <A href="G2S_SetBlendAlpha.html">G2S_SetBlendAlpha</A><BR> <A href="G2S_SetBlendBrightness.html">G2S_SetBlendBrightness</A><BR> <A href="G2S_ChangeBlendAlpha.html">G2S_ChangeBlendAlpha</A><BR> <A href="G2S_ChangeBlendBrightness.html">G2S_ChangeBlendBrightness</A></CODE></P> 54<H2>Revision History</H2> 55<P>2008/10/30 Added description of the alpha-blending coefficients.</P> 56<P>2004/02/09 Initial version.</P> 57<hr><p>CONFIDENTIAL</p></body> 58</html> 59