From f8a964b422c195219c59a3b21d9bb3125ce215dd Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 4 Aug 2009 11:10:55 +0100 Subject: [PATCH] [cogl] Expose cogl_is_vertex_buffer() The function is public and available in the shared object, but it's not present in the header, so this is not an API/ABI change. --- clutter/cogl/cogl-vertex-buffer.h | 14 ++++++++++++++ doc/reference/cogl/cogl-sections.txt | 1 + 2 files changed, 15 insertions(+) diff --git a/clutter/cogl/cogl-vertex-buffer.h b/clutter/cogl/cogl-vertex-buffer.h index 9342ceb5a..019adecc2 100644 --- a/clutter/cogl/cogl-vertex-buffer.h +++ b/clutter/cogl/cogl-vertex-buffer.h @@ -433,6 +433,20 @@ cogl_vertex_buffer_unref (CoglHandle handle); CoglHandle cogl_vertex_buffer_indices_get_for_quads (guint n_indices); +/** + * cogl_is_vertex_buffer: + * @handle: a #CoglHandle for a vertex buffer object + * + * Checks whether @handle is a Vertex Buffer Object + * + * Return value: %TRUE if the handle is a VBO, and %FALSE + * otherwise + * + * Since: 1.0 + */ +gboolean +cogl_is_vertex_buffer (CoglHandle); + G_END_DECLS #endif /* __COGL_VERTEX_BUFFER_H__ */ diff --git a/doc/reference/cogl/cogl-sections.txt b/doc/reference/cogl/cogl-sections.txt index f340cb095..e8c33157c 100644 --- a/doc/reference/cogl/cogl-sections.txt +++ b/doc/reference/cogl/cogl-sections.txt @@ -369,6 +369,7 @@ cogl_vertex_buffer_submit cogl_vertex_buffer_disable cogl_vertex_buffer_enable cogl_vertex_buffer_draw +cogl_is_vertex_buffer CoglIndicesType