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>glGetUniformsDMP</title> 8 </head> 9 <body> 10<h1><CODE>glGetUniformsDMP</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14GL_APICALL void GL_APIENTRY glGetUniformsDMP( 15 GLuint program, 16 GLuint n, 17 GLint * locations, 18 GLsizei * counts, 19 GLuint * params 20); 21</pre> 22 </div> 23<h2>Arguments</h2> 24 <div class="section"> 25 <table class="arguments"> 26 <thead> 27 <tr> 28 <td width="15" /> 29<th>Name</th> 30<td>Description</td> 31 </tr> 32 </thead> 33 <tr> 34<td>in</td> 35<th>program</th> 36<td>Program object for getting a uniform value.</td> 37 </tr> 38 <tr> 39<td>in</td> 40<th>n</th> 41<td>Number of uniforms to get.</td> 42 </tr> 43 <tr> 44<td>in</td> 45<th>locations</th> 46<td>Pointer to an array of <SPAN class="argument">n</SPAN> elements holding the uniform locations.</td> 47 </tr> 48 <tr> 49<td>in</td> 50<th>counts</th> 51<td>Pointer to an array of <SPAN class="argument">n</SPAN> elements holding the uniform elements.</td> 52 </tr> 53 <tr> 54<td>out</td> 55<th>params</th> 56<td>Pointer to an array for getting the uniform values.</td> 57 </tr> </table> 58 </div> 59<h2>Return Values</h2> 60<div class="section">No values are returned. </div> 61<h2>Description</h2> 62 <div class="section"> 63<p>Gets multiple uniform values.</p><P> 64Gets multiple uniform values at once for the specified program. 65 </P><P> 66Set <span class="argument">program</span> to the program object for the uniform values to get. Set <SPAN class="argument">n</SPAN> to the number of uniforms to get, and set <SPAN class="argument">locations</SPAN> to a pointer to an array holding <SPAN class="argument">n</SPAN> uniform locations. 67 </P><P> 68Set <SPAN class="argument">counts</SPAN> to a pointer to an array of <SPAN class="argument">n</SPAN> elements holding the uniform elements. For array-type uniforms, specify the number of array elements to get values from. For non-array uniforms, specify <CODE>1</CODE>. 69 </P><P> 70Set <span class="argument">params</span> to a pointer to an array for getting the uniform values. Each uniform may have a different number of data items, so the data stored at any given index in <SPAN class="argument">params</SPAN> might not match that for <SPAN class="argument">locations</SPAN> and <SPAN class="argument">counts</SPAN>. The uniforms for the values to get may be mixed <CODE>float</CODE> and <CODE>int</CODE> types. When getting <CODE>float</CODE> type uniforms, <CODE>float</CODE> type data is stored in <SPAN class="argument">params</SPAN> as 32-bit data. 71 </P><P> 72This function performs no error checking. Behavior is undefined when any of the arguments contains an invalid value. 73 </P></div> 74<h2>Revision History</h2> 75 <div class="section"> 76 <dl class="history"> 77 <dt>2010/04/02</dt> 78<dd>Initial version.<br /> 79 </dd> 80 </dl> 81 </div> 82 <hr><p>CONFIDENTIAL</p></body> 83</html>