mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
attribute: add missing transfer annotations
Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
db513174f0
commit
7b25c8f5ca
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user