From 5abb11ba6b054d3fef55caabf6bc11d84e393a23 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 19 Feb 2009 11:55:54 +0000 Subject: [PATCH] [cogl] Add cogl_is_material to cogl-material.h The COGL_DEFINE_HANDLE macro generates a cogl_is_ function as well, to check whether a CoglHandle opaque pointer is of type . The handle for CoglMaterial does not export cogl_is_material() in its installed header. --- cogl-material.h | 11 ++++++++++- doc/reference/cogl/cogl-sections.txt | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cogl-material.h b/cogl-material.h index 6bcfeb3f7..949daed20 100644 --- a/cogl-material.h +++ b/cogl-material.h @@ -52,7 +52,16 @@ CoglHandle cogl_material_ref (CoglHandle handle); */ void cogl_material_unref (CoglHandle handle); - +/** + * cogl_is_material: + * @handle: A CoglHandle + * + * Gets whether the given handle references an existing material object. + * + * Returns: %TRUE if the handle references a #CoglMaterial, + * %FALSE otherwise + */ +gboolean cogl_is_material (CoglHandle handle); /** * cogl_material_set_color: diff --git a/doc/reference/cogl/cogl-sections.txt b/doc/reference/cogl/cogl-sections.txt index 3578c2d8e..432ef75bf 100644 --- a/doc/reference/cogl/cogl-sections.txt +++ b/doc/reference/cogl/cogl-sections.txt @@ -330,6 +330,7 @@ cogl_matrix_scale cogl_material_new cogl_material_ref cogl_material_unref +cogl_is_material cogl_material_set_color cogl_material_set_color4ub cogl_material_set_color4f