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>glUniformMatrix4fv</title>
8  </head>
9  <body>
10<h1><CODE>glUniformMatrix4fv</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glUniformMatrix4fv(
15     GLint location,
16     GLsizei count,
17     GLboolean transpose,
18     const GLfloat * value
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>location</th>
35<td>Location of uniform variable</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>count</th>
40<td>The number of elements in the GL_FLOAT_VEC4 array-type uniform being configured.</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>transpose</th>
45<td>Whether to load the transpose</td>
46        </tr>
47        <tr>
48<td>in</td>
49<th>value</th>
50<td>Array storing the values to set</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 <CODE>GL_FLOAT_VEC4</CODE>-type uniform variable arrays in the vertex shader or geometry shader.</p><P>
58This function changes the values of a (<span class="argument">count</span> × 4) number of arrays. Set <span class="argument">transpose</span> to <CODE>GL_TRUE</CODE> when taking the transpose. For <span class="argument">value</span>, specify an array of values to set in the uniform. Specify <span class="argument">value</span> using an array of (<span class="argument">count</span> × 16) <CODE>GLfloat</CODE> values.
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_VALUE</TH><TD>The <span class="argument">count</span> argument is negative.</TD></TR><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 array count is less than four times the sum of <span class="argument">count</span> and the offset added to the location obtained from <CODE>glGetUniformLocation</CODE>.</TD></TR></TABLE><!-- source                      countが負の値の場合エラーGL_INVALID_VALUEを生成します。 locationがカレントのプログラムのロケーションではない場合エラーGL_INVALID_OPERATIONを生成します。 カレントにプログラムがない場合エラーGL_INVALID_OPERATIONを生成します。 データのコンポーネント数、および型の異なるロケーションに対して呼び出した場合エラーGL_INVALID_OPERATIONを生成します。 glGetUniformLocationで取得されるロケーションの値に加算したオフセットとcountの和x4が ユニフォームの配列数を超える場合エラーGL_INVALID_OPERATIONを生成します。                 --></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>