1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../css/manpage.css" type="text/css" />
7<title>glBlendFuncSeparate</title>
8  </head>
9  <body>
10<h1>glBlendFuncSeparate Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glBlendFuncSeparate(
15     GLenum srcRGB,
16     GLenum dstRGB,
17     GLenum srcAlpha,
18     GLenum dstAlpha
19);
20</pre>
21    </div>
22<h2>Arguments</h2>
23    <div class="section">
24      <table class="arguments">
25        <thead>
26          <tr>
27            <td width="15" />
28<th>Name</th>
29<td>Description</td>
30          </tr>
31        </thead>
32        <tr>
33<td>in</td>
34<th>srcRGB</th>
35<td>Source RGB components for the blend feature</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>dstRGB</th>
40<td>Destination RGB components for the blend feature</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>srcAlpha</th>
45<td>Source alpha components for the blend feature</td>
46        </tr>
47        <tr>
48<td>in</td>
49<th>dstAlpha</th>
50<td>Destination alpha components for the blend feature</td>
51        </tr> </table>
52    </div>
53<h2>Return Values</h2>
54<div class="section">No values are returned. </div>
55<h2>Description</h2>
56    <div class="section">
57<p>Configures the source and destination blend factors for the blend feature. Values are set separately for the RGB and alpha components.</p><!-- source                      srcRGB、dstRGB、srcAlpha、dstAlphaにはGL_ZERO、GL_ONE、GL_SRC_COLOR、GL_ONE_MINUS_SRC_COLOR、GL_DST_COLOR、 GL_ONE_MINUS_DST_COLOR、GL_SRC_ALPHA、GL_ONE_MINUS_SRC_ALPHA、GL_DST_ALPHA、GL_ONE_MINUS_DST_ALPHA、 GL_CONSTANT_COLOR、GL_ONE_MINUS_CONSTANT_COLOR、GL_CONSTANT_ALPHA、GL_ONE_MINUS_CONSTANT_ALPHA、およびGL_SRC_ALPHA_SATURATEが指定できます。                 --><P>
58You can set <span class="argument">srcRGB</span>, <span class="argument">dstRGB</span>, <span class="argument">srcAlpha</span>, and <span class="argument">dstAlpha</span> to the following values. (You cannot set <span class="argument">dstRGB</span> or <span class="argument">dstAlpha</span> to <CODE>GL_SRC_ALPHA_SATURATE</CODE> with POD.)
59            </P><P>
60In the table, (Fr,Fg,Fb,Fa) indicates the blend factors for each RGBA component, (Rs,Gs,Bs,As) indicates the input pixel color, (Rd,Gd,Bd,Ad) indicates the pixel color stored in the framebuffer, and (Rc,Gc,Bc,Ac) indicates the constant color set by <code>glBlendColor</code>.
61</P><P><TABLE><TR><TH>GL_ZERO</TH><TD>(Fr,Fg,Fb,Fa) = (0,0,0,0)</TD></TR><TR><TH>GL_ONE</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1)</TD></TR><TR><TH>GL_SRC_COLOR</TH><TD>(Fr,Fg,Fb,Fa) = (Rs,Gs,Bs,As)</TD></TR><TR><TH>GL_ONE_MINUS_SRC_COLOR</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Rs,Gs,Bs,As)</TD></TR><TR><TH>GL_DST_COLOR</TH><TD>(Fr,Fg,Fb,Fa) = (Rd,Gd,Bd,Ad)</TD></TR><TR><TH>GL_ONE_MINUS_DST_COLOR</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Rd,Gd,Bd,Ad)</TD></TR><TR><TH>GL_SRC_ALPHA</TH><TD>(Fr,Fg,Fb,Fa) = (As,As,As,As)</TD></TR><TR><TH>GL_ONE_MINUS_SRC_ALPHA</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1) - (As,As,As,As)</TD></TR><TR><TH>GL_DST_ALPHA</TH><TD>(Fr,Fg,Fb,Fa) = (Ad,Ad,Ad,Ad)</TD></TR><TR><TH>GL_ONE_MINUS_DST_ALPHA</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Ad,Ad,Ad,Ad)</TD></TR><TR><TH>GL_CONSTANT_COLOR</TH><TD>(Fr,Fg,Fb,Fa) = (Rc,Gc,Bc,Ac)</TD></TR><TR><TH>GL_ONE_MINUS_CONSTANT_COLOR</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Rc,Gc,Bc,Ac)</TD></TR><TR><TH>GL_CONSTANT_ALPHA</TH><TD>(Fr,Fg,Fb,Fa) = (Ac,Ac,Ac,Ac)</TD></TR><TR><TH>GL_ONE_MINUS_CONSTANT_ALPHA</TH><TD>(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Ac,Ac,Ac,Ac)</TD></TR><TR><TH>GL_SRC_ALPHA_SATURATE</TH><TD>(Fr,Fg,Fb,Fa) = (min(As,1-Ad),min(As,1-Ad),min(As,1-Ad),1)</TD></TR></TABLE><!-- source                      GL_ZEROは、(Fr,Fg,Fb,Fa) = (0,0,0,0) GL_ONEは、(Fr,Fg,Fb,Fa) = (1,1,1,1) GL_SRC_COLORは、(Fr,Fg,Fb,Fa) = (Rs,Gs,Bs,As) GL_ONE_MINUS_SRC_COLORは、(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Rs,Gs,Bs,As) GL_DST_COLORは、(Fr,Fg,Fb,Fa) = (Rd,Gd,Bd,Ad) GL_ONE_MINUS_DST_COLORは、(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Rd,Gd,Bd,Ad) GL_SRC_ALPHAは、(Fr,Fg,Fb,Fa) = (As,As,As,As) GL_ONE_MINUS_SRC_ALPHAは、(Fr,Fg,Fb,Fa) = (1,1,1,1) - (As,As,As,As) GL_DST_ALPHAは、(Fr,Fg,Fb,Fa) = (Ad,Ad,Ad,Ad) GL_ONE_MINUS_DST_ALPHAは、(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Ad,Ad,Ad,Ad) GL_CONSTANT_COLORは、(Fr,Fg,Fb,Fa) = (Rc,Gc,Bc,Ac) GL_ONE_MINUS_CONSTANT_COLORは、(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Rc,Gc,Bc,Ac) GL_CONSTANT_ALPHAは、(Fr,Fg,Fb,Fa) = (Ac,Ac,Ac,Ac) GL_ONE_MINUS_CONSTANT_ALPHAは、(Fr,Fg,Fb,Fa) = (1,1,1,1) - (Ac,Ac,Ac,Ac) GL_SRC_ALPHA_SATURATEは、(Fr,Fg,Fb,Fa) = (min(As,1-Ad),min(As,1-Ad),min(As,1-Ad),1)                 --></P><P>
62This function generates the following errors.
63<TABLE><TR><TH>GL_INVALID_ENUM</TH><TD>The <span class="argument">srcRGB</span>, <span class="argument">dstRGB</span>, <span class="argument">srcAlpha</span>, or <span class="argument">dstAlpha</span> argument was set to an invalid value.</TD></TR></TABLE><!-- source                                      コマンドリストオブジェクトをバインドしていない状態で呼び出すとGL_INVALID_OPERATIONを生成します。 srcRGB、dstRGB、srcAlpha、dstAlphaに不正な値を指定した場合エラーGL_INVALID_ENUMを生成します。                 --></P></div>
64<h2>Revision History</h2>
65    <div class="section">
66      <dl class="history">
67        <dt>2010/01/07</dt>
68<dd>Initial version.<br />
69        </dd>
70      </dl>
71    </div>
72  <hr><p>CONFIDENTIAL</p></body>
73</html>