[cogl] atlas-texture: use COGL_TEXTURE_DEFINE macro



commit ecbe209f48be80fe45b48f92b277a2aee08d5704
Author: Robert Bragg <robert linux intel com>
Date:   Fri Sep 6 18:18:52 2013 +0100

    atlas-texture: use COGL_TEXTURE_DEFINE macro
    
    It was an oversight when making the CoglAtlasTexture api public that we
    continued to use the COGL_TEXTURE_INTERNAL_DEFINE macro. This updates
    the code to now use COGL_TEXTURE_DEFINE which means the
    cogl_is_atlas_texture() function will now be exported in the public api.
    
    Reviewed-by: Neil Roberts <neil linux intel com>
    Reviewed-by: Lionel Landwerlin <llandwerlin gmail com>

 cogl/cogl-atlas-texture.c |    2 +-
 cogl/cogl-atlas-texture.h |   15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-atlas-texture.c b/cogl/cogl-atlas-texture.c
index aad0e64..cc231ae 100644
--- a/cogl/cogl-atlas-texture.c
+++ b/cogl/cogl-atlas-texture.c
@@ -50,7 +50,7 @@
 
 static void _cogl_atlas_texture_free (CoglAtlasTexture *sub_tex);
 
-COGL_TEXTURE_INTERNAL_DEFINE (AtlasTexture, atlas_texture);
+COGL_TEXTURE_DEFINE (AtlasTexture, atlas_texture);
 
 static const CoglTextureVtable cogl_atlas_texture_vtable;
 
diff --git a/cogl/cogl-atlas-texture.h b/cogl/cogl-atlas-texture.h
index 5745cca..9860c5d 100644
--- a/cogl/cogl-atlas-texture.h
+++ b/cogl/cogl-atlas-texture.h
@@ -209,6 +209,21 @@ cogl_atlas_texture_new_from_bitmap (CoglBitmap *bmp,
                                     CoglPixelFormat internal_format,
                                     CoglError **error);
 
+/**
+ * cogl_is_atlas_texture:
+ * @object: a #CoglObject
+ *
+ * Checks whether the given object references a #CoglAtlasTexture
+ *
+ * Return value: %TRUE if the passed object represents an atlas
+ *   texture and %FALSE otherwise
+ *
+ * Since: 1.16
+ * Stability: Unstable
+ */
+CoglBool
+cogl_is_atlas_texture (void *object);
+
 COGL_END_DECLS
 
 #endif /* _COGL_ATLAS_TEXTURE_H_ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]