From 0e839c37693339287232f0292283f92522fa3ca5 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 9 Jul 2010 18:24:28 +0100 Subject: [PATCH] Add cogl_vertex_buffer_is_indices to the public headers This function has always been defined in the shared library but it was missed from the public headers. --- clutter/cogl/cogl/cogl-vertex-buffer.h | 15 +++++++++++++++ doc/reference/cogl/cogl-sections.txt | 1 + 2 files changed, 16 insertions(+) diff --git a/clutter/cogl/cogl/cogl-vertex-buffer.h b/clutter/cogl/cogl/cogl-vertex-buffer.h index d7f320c07..4b8c47c6e 100644 --- a/clutter/cogl/cogl/cogl-vertex-buffer.h +++ b/clutter/cogl/cogl/cogl-vertex-buffer.h @@ -457,6 +457,21 @@ cogl_vertex_buffer_indices_get_for_quads (unsigned int n_indices); gboolean cogl_is_vertex_buffer (CoglHandle handle); +/** + * cogl_is_vertex_buffer_indices: + * @handle: a #CoglHandle + * + * Checks whether @handle is a handle to the indices for a vertex + * buffer object + * + * Return value: %TRUE if the handle is indices, and %FALSE + * otherwise + * + * Since: 1.4 + */ +gboolean +cogl_is_vertex_buffer_indices (CoglHandle handle); + 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 18282bec3..b75a10e4f 100644 --- a/doc/reference/cogl/cogl-sections.txt +++ b/doc/reference/cogl/cogl-sections.txt @@ -432,6 +432,7 @@ CoglIndicesType cogl_vertex_buffer_indices_new cogl_vertex_buffer_draw_elements cogl_vertex_buffer_indices_get_for_quads +cogl_is_vertex_buffer_indices cogl_vertex_buffer_indices_get_type