diff options
author | Robert Bragg <robert@linux.intel.com> | 2013-09-06 18:18:52 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-09-06 18:37:57 +0100 |
commit | ecbe209f48be80fe45b48f92b277a2aee08d5704 (patch) | |
tree | 05c4fea7de1ccabaf093ee04a69d0ac4ba9f92d5 /cogl/cogl-atlas-texture.h | |
parent | 7043063930f991a147a634c585e4312a240d96f8 (diff) | |
download | cogl-ecbe209f48be80fe45b48f92b277a2aee08d5704.tar.gz |
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>
Diffstat (limited to 'cogl/cogl-atlas-texture.h')
-rw-r--r-- | cogl/cogl-atlas-texture.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cogl/cogl-atlas-texture.h b/cogl/cogl-atlas-texture.h index 5745ccae..9860c5d8 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_ */ |