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>glUniformsDMP</title>
8  </head>
9  <body>
10<h1><CODE>glUniformsDMP</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glUniformsDMP(
15     GLuint n,
16     GLint * locations,
17     GLsizei * counts,
18     const GLuint * 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>n</th>
35<td>Number of uniforms to set.</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>locations</th>
40<td>Pointer to an array of <SPAN class="argument">n</SPAN> elements holding the uniform locations.</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>counts</th>
45<td>Pointer to an array of <SPAN class="argument">n</SPAN> elements holding the uniform elements.</td>
46        </tr>
47        <tr>
48<td>in</td>
49<th>value</th>
50<td>Pointer to an array holding the uniforms 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 multiple uniform values.</p><P>
58Sets multiple uniform values at once for the current program.
59            </P><P>
60Set <SPAN class="argument">n</SPAN> to the number of uniforms to set, and set <SPAN class="argument">locations</SPAN> to a pointer to an array holding <SPAN class="argument">n</SPAN> uniform locations. Set <SPAN class="argument">counts</SPAN> to a pointer to an array of <SPAN class="argument">n</SPAN> elements holding the uniform elements. This is equivalent to the <SPAN class="argument">count</SPAN> argument to the <CODE>glUniform{1234}fv</CODE> function. For array-type uniforms, specify the number of array elements to set. For non-array uniforms, specify <CODE>1</CODE>.
61            </P><P>
62For <span class="argument">value</span>, specify an array of values to set in the uniform. Each uniform may have a different number of data items, so the data stored at any given index in <SPAN class="argument">value</SPAN> might not match that for <SPAN class="argument">locations</SPAN> and <SPAN class="argument">counts</SPAN>. The uniforms for the values to set may be mixed <CODE>float</CODE> and <CODE>int</CODE> types. When specifying <CODE>float</CODE> type uniforms, <CODE>float</CODE> type data is stored in <SPAN class="argument">value</SPAN> as 32-bit data.
63            </P><P>
64This function performs no error checking. Behavior is undefined when any of the arguments contains an invalid value.
65            </P></div>
66<h2>Revision History</h2>
67    <div class="section">
68      <dl class="history">
69        <dt>2010/04/02</dt>
70<dd>Initial version.<br />
71        </dd>
72      </dl>
73    </div>
74  <hr><p>CONFIDENTIAL</p></body>
75</html>