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>G2_SetBlendBrightnessExt</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">G2_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 &lt;nitro/gx/g2.h&gt;</CODE><BR>
21<CODE>void G2_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%"><em><strong><font face="Courier New">plane1</font></strong></em></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><em><strong><font face="Courier New">plane2</font></strong></em></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><em><strong><font face="Courier New"><em><strong><code>ev1</code></strong></em>&nbsp;&nbsp;</font></strong></em></TD>
37<TD>Alpha-blending coefficient for translucent OBJ, bitmap OBJ, and 3D screen. (0 &le; <CODE>ev1</CODE> &le; 31)</TD>
38    </TR>
39    <TR>
40<TD><em><strong><font face="Courier New"><em><strong><code>ev2</code></strong></em>&nbsp;&nbsp;</font></strong></em></TD>
41<TD>Alpha-blending coefficient for <CODE>plane2</CODE>. (0 &le; <CODE>ev2</CODE> &le; 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 &le; <em><strong><code>brightness</code></strong></em> &le; 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 <CODE>ev1</CODE> or <CODE>ev2</CODE> is greater than 16, the alpha-blending coefficient is set to 16.<BR><BR>This function changes the brightness of the screen 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="G2_SetBlendAlpha.html">G2_SetBlendAlpha</A></CODE> function for details on the <code>GXBlendPlaneMask</code> type.</P>
52<h2>See Also</h2>
53<P><code><A href="G2_BlendNone.html">G2_BlendNone</A>, <A href="G2_SetBlendAlpha.html">G2_SetBlendAlpha</A>, <A href="G2_SetBlendBrightness.html">G2_SetBlendBrightness</A>, <A href="G2_ChangeBlendAlpha.html">G2_ChangeBlendAlpha</A>, <A href="G2_ChangeBlendBrightness.html">G2_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/01/19 Initial version.</P>
57<hr><p>CONFIDENTIAL</p></body>
58</html>
59