texture-2d: add missing annotations

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Lionel Landwerlin 2013-09-03 12:05:47 +01:00 committed by Robert Bragg
parent 6b7c543663
commit c56e87043d
2 changed files with 14 additions and 14 deletions

View File

@ -53,10 +53,10 @@ COGL_BEGIN_DECLS
* or if @width or @height don't have the correct texture * or if @width or @height don't have the correct texture
* geometry.</note> * geometry.</note>
* *
* Returns: A newly allocated #CoglTexture2D, or if Cogl could not * Return value: (transfer full): A newly allocated #CoglTexture2D, or
* validate the @gl_handle in some way (perhaps because of * if Cogl could not validate the @gl_handle in some way
* an unsupported format) it will return %NULL and set * (perhaps because of an unsupported format) it will return
* @error. * %NULL and set @error.
* *
* Since: 2.0 * Since: 2.0
*/ */

View File

@ -92,7 +92,7 @@ cogl_is_texture_2d (void *object);
* checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via
* cogl_has_feature().</note> * cogl_has_feature().</note>
* *
* Returns: A new #CoglTexture2D object with no storage yet allocated. * Returns: (transfer full): A new #CoglTexture2D object with no storage yet allocated.
* *
* Since: 2.0 * Since: 2.0
*/ */
@ -118,7 +118,7 @@ cogl_texture_2d_new_with_size (CoglContext *ctx,
* *
* Creates a #CoglTexture2D from an image file. * Creates a #CoglTexture2D from an image file.
* *
* Return value: A newly created #CoglTexture2D or %NULL on failure * Return value: (transfer full): A newly created #CoglTexture2D or %NULL on failure
* and @error will be updated. * and @error will be updated.
* *
* Since: 1.16 * Since: 1.16
@ -159,10 +159,10 @@ cogl_texture_2d_new_from_file (CoglContext *ctx,
* checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via
* cogl_has_feature().</note> * cogl_has_feature().</note>
* *
* Returns: A newly allocated #CoglTexture2D, or if the size is not * Returns: (transfer full): A newly allocated #CoglTexture2D, or if
* supported (because it is too large or a non-power-of-two * the size is not supported (because it is too large or a
* size that the hardware doesn't support) it will return * non-power-of-two size that the hardware doesn't support)
* %NULL and set @error. * it will return %NULL and set @error.
* *
* Since: 2.0 * Since: 2.0
*/ */
@ -200,10 +200,10 @@ cogl_texture_2d_new_from_data (CoglContext *ctx,
* checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via
* cogl_has_feature().</note> * cogl_has_feature().</note>
* *
* Returns: A newly allocated #CoglTexture2D, or if the size is not * Returns: (transfer full): A newly allocated #CoglTexture2D, or if
* supported (because it is too large or a non-power-of-two * the size is not supported (because it is too large or a
* size that the hardware doesn't support) it will return * non-power-of-two size that the hardware doesn't support)
* %NULL and set @error. * it will return %NULL and set @error.
* *
* Since: 2.0 * Since: 2.0
* Stability: unstable * Stability: unstable