summaryrefslogtreecommitdiff
path: root/cogl/cogl-framebuffer.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-10-01 01:25:09 +0100
committerRobert Bragg <robert@linux.intel.com>2013-01-22 17:48:02 +0000
commitf9c7e9d2705c1146646db1c2d0f23e5fbf2cfb88 (patch)
tree9c62244f284d613e2380cbb63cbd41bf40d88f9c /cogl/cogl-framebuffer.h
parent0866b90069452b5f7aff8f8983ffdb4f57feb20b (diff)
downloadcogl-f9c7e9d2705c1146646db1c2d0f23e5fbf2cfb88.tar.gz
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)
Diffstat (limited to 'cogl/cogl-framebuffer.h')
-rw-r--r--cogl/cogl-framebuffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index 2358304c..c350d8ab 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -240,7 +240,8 @@ cogl_framebuffer_get_viewport_height (CoglFramebuffer *framebuffer);
/**
* cogl_framebuffer_get_viewport4fv:
* @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.
*
* Queries the x, y, width and height components of the current viewport as set