summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-09-03 14:35:54 +0100
committerRobert Bragg <robert@linux.intel.com>2013-09-23 15:02:31 +0100
commit7b25c8f5caad6f09543f001da3630e1bc595b4ab (patch)
tree345425cad58fffd8706b741768da34b55b76025d
parentdb513174f0e1a11b8dbe9689183b20183d384f9d (diff)
downloadcogl-7b25c8f5caad6f09543f001da3630e1bc595b4ab.tar.gz
attribute: add missing transfer annotations
Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r--cogl/cogl-attribute-buffer.c1
-rw-r--r--cogl/cogl-attribute.h49
2 files changed, 26 insertions, 24 deletions
diff --git a/cogl/cogl-attribute-buffer.c b/cogl/cogl-attribute-buffer.c
index 20c093de..afa945bc 100644
--- a/cogl/cogl-attribute-buffer.c
+++ b/cogl/cogl-attribute-buffer.c
@@ -37,6 +37,7 @@
static void _cogl_attribute_buffer_free (CoglAttributeBuffer *array);
COGL_BUFFER_DEFINE (AttributeBuffer, attribute_buffer);
+COGL_GTYPE_DEFINE_CLASS (AttributeBuffer, attribute_buffer);
CoglAttributeBuffer *
cogl_attribute_buffer_new_with_size (CoglContext *context,
diff --git a/cogl/cogl-attribute.h b/cogl/cogl-attribute.h
index c635e04e..9aa6a7b7 100644
--- a/cogl/cogl-attribute.h
+++ b/cogl/cogl-attribute.h
@@ -130,8 +130,9 @@ COGL_BEGIN_DECLS
* mapped into the GPU which can be a bottlneck when dealing with
* a large number of vertices.
*
- * Returns: A newly allocated #CoglAttribute describing the
- * layout for a list of attribute values stored in @array.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * describing the layout for a list of attribute values
+ * stored in @array.
*
* Since: 1.4
* Stability: Unstable
@@ -163,8 +164,8 @@ cogl_attribute_new (CoglAttributeBuffer *attribute_buffer,
* attribute float name;
* |]
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant @value.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant @value.
*/
CoglAttribute *
cogl_attribute_new_const_1f (CoglContext *context,
@@ -190,8 +191,8 @@ cogl_attribute_new_const_1f (CoglContext *context,
* attribute vec2 name;
* |]
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant vector.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant vector.
*/
CoglAttribute *
cogl_attribute_new_const_2f (CoglContext *context,
@@ -222,8 +223,8 @@ cogl_attribute_new_const_2f (CoglContext *context,
* unless the built in name "cogl_normal_in" is being used where no
* explicit GLSL declaration need be made.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant vector.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant vector.
*/
CoglAttribute *
cogl_attribute_new_const_3f (CoglContext *context,
@@ -257,8 +258,8 @@ cogl_attribute_new_const_3f (CoglContext *context,
* "cogl_tex_coord0_in or "cogl_tex_coord1_in" etc is being used where
* no explicit GLSL declaration need be made.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant vector.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant vector.
*/
CoglAttribute *
cogl_attribute_new_const_4f (CoglContext *context,
@@ -286,8 +287,8 @@ cogl_attribute_new_const_4f (CoglContext *context,
* attribute vec2 name;
* |]
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant vector.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant vector.
*/
CoglAttribute *
cogl_attribute_new_const_2fv (CoglContext *context,
@@ -315,8 +316,8 @@ cogl_attribute_new_const_2fv (CoglContext *context,
* unless the built in name "cogl_normal_in" is being used where no
* explicit GLSL declaration need be made.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant vector.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant vector.
*/
CoglAttribute *
cogl_attribute_new_const_3fv (CoglContext *context,
@@ -345,8 +346,8 @@ cogl_attribute_new_const_3fv (CoglContext *context,
* "cogl_tex_coord0_in or "cogl_tex_coord1_in" etc is being used where
* no explicit GLSL declaration need be made.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant vector.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant vector.
*/
CoglAttribute *
cogl_attribute_new_const_4fv (CoglContext *context,
@@ -378,8 +379,8 @@ cogl_attribute_new_const_4fv (CoglContext *context,
* around the diagonal of the matrix such that the first column
* becomes the first row and the second column becomes the second row.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant matrix.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant matrix.
*/
CoglAttribute *
cogl_attribute_new_const_2x2fv (CoglContext *context,
@@ -413,8 +414,8 @@ cogl_attribute_new_const_2x2fv (CoglContext *context,
* becomes the first row and the second column becomes the second row
* etc.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant matrix.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant matrix.
*/
CoglAttribute *
cogl_attribute_new_const_3x3fv (CoglContext *context,
@@ -448,8 +449,8 @@ cogl_attribute_new_const_3x3fv (CoglContext *context,
* becomes the first row and the second column becomes the second row
* etc.
*
- * Returns: A newly allocated #CoglAttribute representing the given
- * constant matrix.
+ * Return value: (transfer full): A newly allocated #CoglAttribute
+ * representing the given constant matrix.
*/
CoglAttribute *
cogl_attribute_new_const_4x4fv (CoglContext *context,
@@ -496,8 +497,8 @@ cogl_attribute_get_normalized (CoglAttribute *attribute);
* cogl_attribute_get_buffer:
* @attribute: A #CoglAttribute
*
- * Return value: the #CoglAttributeBuffer that was set with
- * cogl_attribute_set_buffer() or cogl_attribute_new().
+ * Return value: (transfer none): the #CoglAttributeBuffer that was
+ * set with cogl_attribute_set_buffer() or cogl_attribute_new().
*
* Stability: unstable
* Since: 1.10