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>glLogicOp</title>
8  </head>
9  <body>
10<h1><CODE>glLogicOp</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glLogicOp(
15     GLenum opcode
16);
17</pre>
18    </div>
19<h2>Parameters</h2>
20    <div class="section">
21      <table class="arguments">
22        <thead>
23          <tr>
24            <td width="15" />
25<th>Name</th>
26<td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30<td>in</td>
31<th>opcode</th>
32<td>Logical operation mode</td>
33        </tr> </table>
34    </div>
35<h2>Return Values</h2>
36<div class="section">No values are returned. </div>
37<h2>Description</h2>
38    <div class="section">
39<p>Sets the logical operation for pixels.</p><!-- source                      opcodeにはGL_CLEAR、GL_AND、GL_AND_REVERSE、GL_COPY、GL_SET、GL_COPY_INVERTED、GL_NOOP、GL_INVERT、 GL_NAND、GL_OR、GL_NOR、GL_XOR、GL_EQUIV、GL_AND_INVERTED、GL_OR_REVERSE、GL_OR_INVERTEDが指定できます。                  --><P>
40You can set <code>opcode</code> to the following values. The input pixel color is indicated by <code>s</code> and the corresponding framebuffer pixel color is indicated by <code>d</code>.
41<TABLE><TR><TH>GL_CLEAR</TH><TD>0 </TD></TR><TR><TH>GL_SET</TH><TD>1 </TD></TR><TR><TH>GL_COPY</TH><TD><CODE>s</CODE></TD></TR><TR><TH>GL_COPY_INVERTED</TH><TD><CODE>~s</CODE></TD></TR><TR><TH>GL_NOOP</TH><TD><CODE>d</CODE></TD></TR><TR><TH>GL_INVERT</TH><TD><CODE>~d</CODE></TD></TR><TR><TH>GL_AND</TH><TD><CODE>s&d</CODE></TD></TR><TR><TH>GL_NAND</TH><TD><CODE>~(s&d)</CODE></TD></TR><TR><TH>GL_OR</TH><TD><CODE>s|d</CODE></TD></TR><TR><TH>GL_NOR</TH><TD><CODE>~(s|d)</CODE></TD></TR><TR><TH>GL_XOR</TH><TD><CODE>s^d</CODE></TD></TR><TR><TH>GL_EQUIV</TH><TD><CODE>~(s^d)</CODE></TD></TR><TR><TH>GL_AND_REVERSE</TH><TD><CODE>s&~d</CODE></TD></TR><TR><TH>GL_AND_INVERTED</TH><TD><CODE>~s&d</CODE></TD></TR><TR><TH>GL_OR_REVERSE</TH><TD><CODE>s|~d</CODE></TD></TR><TR><TH>GL_OR_INVERTED</TH><TD><CODE>~s|d</CODE> </TD></TR></TABLE><!-- source                      GL_CLEARは、0 GL_SETは、1 GL_COPYは、s GL_COPY_INVERTEDは、~s GL_NOOPは、d GL_INVERTは、~d GL_ANDは、s&d GL_NANDは、~(s&d) GL_ORは、s|d GL_NORは、~(s|d) GL_XORは、s^d GL_EQUIVは、~(s^d) GL_AND_REVERSEは、s&~d GL_AND_INVERTEDは、~s&d GL_OR_REVERSEは、s|~d GL_OR_INVERTEDは、~s|d                  --></P><P>
42This function generates the following errors.
43<TABLE><TR><TH>GL_INVALID_ENUM</TH><TD>The <code>opcode</code> argument was set to an invalid value.</TD></TR><TR><TH>GL_INVALID_OPERATION</TH><TD>This function was called without any command-list objects bound.</TD></TR></TABLE><!-- source                      opcodeに不正な値を指定した場合エラーGL_INVALID_ENUMを生成します。 コマンドリストオブジェクトをバインドしていない状態で呼び出すとエラーGL_INVALID_OPERATIONを生成します。                 --></P></div>
44<h2>Revision History</h2>
45    <div class="section">
46      <dl class="history">
47        <dt>2010/01/07</dt>
48<dd>Initial version.<br />
49        </dd>
50      </dl>
51    </div>
52  <hr><p>CONFIDENTIAL</p></body>
53</html>