cogl: Fix array annotations

The arrays in the cogl_program_set_uniform_* API should be marked as
such, and have their length arguments specified.
This commit is contained in:
Emmanuele Bassi 2010-01-05 16:11:45 +00:00
parent 59105341bc
commit 793fec8138

View File

@ -265,10 +265,10 @@ void cogl_program_uniform_1i (int uniform_no,
* @uniform_no: the uniform to set. * @uniform_no: the uniform to set.
* @size: Size of float vector. * @size: Size of float vector.
* @count: Size of array of uniforms. * @count: Size of array of uniforms.
* @value: the new value of the uniform. * @value: (array length=count): the new value of the uniform.
* *
* Changes the value of a float vector uniform, or uniform array in the * Changes the value of a float vector uniform, or uniform array in the
* currently used (see #cogl_program_use) shader program. * currently used (see cogl_program_use()) shader program.
*/ */
void cogl_program_uniform_float (int uniform_no, void cogl_program_uniform_float (int uniform_no,
int size, int size,
@ -280,7 +280,7 @@ void cogl_program_uniform_float (int uniform_no,
* @uniform_no: the uniform to set. * @uniform_no: the uniform to set.
* @size: Size of int vector. * @size: Size of int vector.
* @count: Size of array of uniforms. * @count: Size of array of uniforms.
* @value: the new value of the uniform. * @value: (array length=count): the new value of the uniform.
* *
* Changes the value of a int vector uniform, or uniform array in the * Changes the value of a int vector uniform, or uniform array in the
* currently used (see cogl_program_use()) shader program. * currently used (see cogl_program_use()) shader program.
@ -296,7 +296,7 @@ void cogl_program_uniform_int (int uniform_no,
* @size: Size of matrix. * @size: Size of matrix.
* @count: Size of array of uniforms. * @count: Size of array of uniforms.
* @transpose: Whether to transpose the matrix when setting the uniform. * @transpose: Whether to transpose the matrix when setting the uniform.
* @value: the new value of the uniform. * @value: (array length=count): the new value of the uniform.
* *
* Changes the value of a matrix uniform, or uniform array in the * Changes the value of a matrix uniform, or uniform array in the
* currently used (see cogl_program_use()) shader program. The @size * currently used (see cogl_program_use()) shader program. The @size