[cogl/wip/cogl-sharp: 13/14] framebuffer: Annotate the output parameter of get_viewport4fv()
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-sharp: 13/14] framebuffer: Annotate the output parameter of get_viewport4fv()
- Date: Mon, 1 Oct 2012 00:39:21 +0000 (UTC)
commit 49398cd70b74e71c2d56dca7a9ac10eb5ce8f56d
Author: Damien Lespiau <damien lespiau intel com>
Date: Mon Oct 1 01:25:09 2012 +0100
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.
cogl/cogl-framebuffer.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index 62a02ca..c1295b8 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -231,7 +231,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]