framebuffer: Annotate the output parameter of get_viewport4fv()

Annotate that the float* is an out parameter that points to a caller
allocated array of 4 floats.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit f40b0d03d796c16c62f4937e99e16de084fc6b9a)
This commit is contained in:
Damien Lespiau 2012-10-01 01:25:09 +01:00 committed by Robert Bragg
parent 0866b90069
commit f9c7e9d270

View File

@ -240,7 +240,8 @@ cogl_framebuffer_get_viewport_height (CoglFramebuffer *framebuffer);
/** /**
* cogl_framebuffer_get_viewport4fv: * cogl_framebuffer_get_viewport4fv:
* @framebuffer: A #CoglFramebuffer * @framebuffer: A #CoglFramebuffer
* @viewport: A pointer to an array of 4 floats to receive the (x, y, width, height) * @viewport: (out caller-allocates) (array fixed-size=4): A pointer to an
* array of 4 floats to receive the (x, y, width, height)
* components of the current viewport. * components of the current viewport.
* *
* Queries the x, y, width and height components of the current viewport as set * Queries the x, y, width and height components of the current viewport as set