glGetUniformsDMP Function
GL_APICALL void GL_APIENTRY glGetUniformsDMP(
GLuint program,
GLuint n,
GLint * locations,
GLsizei * counts,
GLuint * params
);
| Name | Description | |
|---|---|---|
| in | program | Program object for getting a uniform value. |
| in | n | Number of uniforms to get. |
| in | locations | Pointer to an array of n elements holding the uniform locations. |
| in | counts | Pointer to an array of n elements holding the uniform elements. |
| out | params | Pointer to an array for getting the uniform values. |
Gets multiple uniform values.
Gets multiple uniform values at once for the specified program.
Set program to the program object for the uniform values to get. Set n to the number of uniforms to get, and set locations to a pointer to an array holding n uniform locations.
Set counts to a pointer to an array of n elements holding the uniform elements. For array-type uniforms, specify the number of array elements to get values from. For non-array uniforms, specify 1.
Set params 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 params might not match that for locations and counts. The uniforms for the values to get may be mixed float and int types. When getting float type uniforms, float type data is stored in params as 32-bit data.
This function performs no error checking. Behavior is undefined when any of the arguments contains an invalid value.
CONFIDENTIAL