diff options
author | Robert Bragg <robert@linux.intel.com> | 2009-11-26 17:47:17 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2009-11-26 19:33:13 +0000 |
commit | 7fee8a309bbf4a8dc55a4cb93ee735dec4979173 (patch) | |
tree | 5cc8ab0b72a52830e75fb0795074639b7cf4d924 /cogl/cogl-offscreen.h | |
parent | 1df0e36c6c700ab80943ea0e171b1134ce0ce963 (diff) | |
download | cogl-7fee8a309bbf4a8dc55a4cb93ee735dec4979173.tar.gz |
cogl_offscreen: deprecate cogl_offscreen_ref/unref.
New code should use cogl_handle_ref/unref
Diffstat (limited to 'cogl/cogl-offscreen.h')
-rw-r--r-- | cogl/cogl-offscreen.h | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/cogl/cogl-offscreen.h b/cogl/cogl-offscreen.h index a3be41b7..2d4db7b6 100644 --- a/cogl/cogl-offscreen.h +++ b/cogl/cogl-offscreen.h @@ -35,9 +35,9 @@ G_BEGIN_DECLS /** * SECTION:cogl-offscreen * @short_description: Fuctions for creating and manipulating offscreen - * frame buffer objects + * framebuffers. * - * Cogl allows creating and operating on offscreen render targets. + * Cogl allows creating and operating on offscreen framebuffers. */ /* Offscreen api */ @@ -61,26 +61,30 @@ G_BEGIN_DECLS CoglHandle cogl_offscreen_new_to_texture (CoglHandle handle); /** - * cogl_offscreen_ref: + * cogl_is_offscreen: * @handle: A CoglHandle for an offscreen buffer * - * Increments the reference count on the offscreen buffer. + * Determines whether the given #CoglHandle references an offscreen buffer + * object. * - * Returns: For convenience it returns the given CoglHandle + * Returns: %TRUE if the handle references an offscreen buffer, + * %FALSE otherwise */ -CoglHandle cogl_offscreen_ref (CoglHandle handle); +gboolean cogl_is_offscreen (CoglHandle handle); + +#ifndef COGL_DISABLE_DEPRECATED /** - * cogl_is_offscreen: + * cogl_offscreen_ref: * @handle: A CoglHandle for an offscreen buffer * - * Gets whether the given handle references an existing offscreen buffer - * object. + * Increments the reference count on the offscreen buffer. * - * Returns: %TRUE if the handle references an offscreen buffer, - * %FALSE otherwise + * Returns: For convenience it returns the given CoglHandle + * + * Deprecated: 1.2: cogl_handle_ref should be used in new code. */ -gboolean cogl_is_offscreen (CoglHandle handle); +CoglHandle cogl_offscreen_ref (CoglHandle handle) G_GNUC_DEPRECATED; /** * cogl_offscreen_unref: @@ -88,8 +92,12 @@ gboolean cogl_is_offscreen (CoglHandle handle); * * Decreases the reference count for the offscreen buffer and frees it when * the count reaches 0. + * + * Deprecated: 1.2: cogl_handle_unref should be used in new code. */ -void cogl_offscreen_unref (CoglHandle handle); +void cogl_offscreen_unref (CoglHandle handle) G_GNUC_DEPRECATED; + +#endif /* COGL_DISABLE_DEPRECATED */ G_END_DECLS |