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>glUniform3i</title>
8  </head>
9  <body>
10<h1><CODE>glUniform3i</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glUniform3i(
15     GLint location,
16     GLint x,
17     GLint y,
18     GLint z
19);
20</pre>
21    </div>
22<h2>Parameters</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>location</th>
35<td>Location of uniform variable</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>x</th>
40<td>Value to set for the first component</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>y</th>
45<td>Value to set for the second component</td>
46        </tr>
47        <tr>
48<td>in</td>
49<th>z</th>
50<td>Value to set for the third component</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>Sets the value of a uniform variable with a data type of <CODE>GL_INT_VEC3</CODE> or <CODE>GL_BOOL_VEC3</CODE> in the vertex shader, geometry shader, or reserved fragment shader.</p><P>
58This function also sets the value of the first element in uniform variable arrays of the aforementioned types. Set <span class="argument">location</span> to the uniform variable's location. Use <span class="argument">x</span>, <span class="argument">y</span>, and <span class="argument">z</span> to specify the values to set.
59            </P><P>
60Calls to this function are ignored when <span class="argument">location</span> is -1.
61            </P><P>
62This function generates the following errors.
63<TABLE><TR><TH>GL_INVALID_OPERATION</TH><TD>The <span class="argument">location</span> argument is not a location in the current program.</TD></TR><TR><TH>GL_INVALID_OPERATION</TH><TD>There is no current program object.</TD></TR><TR><TH>GL_INVALID_OPERATION</TH><TD>This function was called on a location with a different data type or component count.</TD></TR><TR><TH>GL_INVALID_OPERATION</TH><TD>The uniform variable array is smaller than the offset added to the location obtained from <CODE>glGetUniformLocation</CODE>.</TD></TR></TABLE><!-- source                      locationがカレントのプログラムのロケーションではない場合エラーGL_INVALID_OPERATIONを生成します。 カレントにプログラムがない場合エラーGL_INVALID_OPERATIONを生成します。 データのコンポーネント数、および型の異なるロケーションに対して呼び出した場合エラーGL_INVALID_OPERATIONを生成します。 glGetUniformLocationで取得されるロケーションの値に加算したオフセットが ユニフォームの配列数を超える場合エラーGL_INVALID_OPERATIONを生成します。 予約フラグメントシェーダのユニフォームに設定範囲が決められている場合、 x、y、zに設定範囲外の値を指定するとエラーGL_INVALID_VALUE、または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>