[cogl/lionel/introspection: 62/76] vertex-buffer: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 62/76] vertex-buffer: add introspection support
- Date: Wed, 11 Sep 2013 15:24:59 +0000 (UTC)
commit 2dd68bc7226a4684e5232b549f84e5f87058686e
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Thu Sep 5 15:58:07 2013 +0100
vertex-buffer: add introspection support
cogl/cogl-vertex-buffer.c | 3 +++
cogl/cogl-vertex-buffer.h | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-vertex-buffer.c b/cogl/cogl-vertex-buffer.c
index 20f327f..bdbbab3 100644
--- a/cogl/cogl-vertex-buffer.c
+++ b/cogl/cogl-vertex-buffer.c
@@ -108,6 +108,7 @@
#include "cogl-primitive-private.h"
#include "cogl-journal-private.h"
#include "cogl1-context.h"
+#include "cogl-gtype-private.h"
#define PAD_FOR_ALIGNMENT(VAR, TYPE_SIZE) \
(VAR = TYPE_SIZE + ((VAR - 1) & ~(TYPE_SIZE - 1)))
@@ -118,7 +119,9 @@ static CoglUserDataKey _cogl_vertex_buffer_pipeline_priv_key;
COGL_HANDLE_DEFINE (VertexBuffer, vertex_buffer);
COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (vertex_buffer);
+COGL_GTYPE_DEFINE_CLASS (VertexBuffer, vertex_buffer);
COGL_HANDLE_DEFINE (VertexBufferIndices, vertex_buffer_indices);
+COGL_GTYPE_DEFINE_CLASS (VertexBufferIndices, vertex_buffer_indices);
CoglHandle
cogl_vertex_buffer_new (unsigned int n_vertices)
diff --git a/cogl/cogl-vertex-buffer.h b/cogl/cogl-vertex-buffer.h
index bd28836..e1aab44 100644
--- a/cogl/cogl-vertex-buffer.h
+++ b/cogl/cogl-vertex-buffer.h
@@ -76,6 +76,9 @@ COGL_BEGIN_DECLS
* that have changed.
*/
+COGL_GTYPE_DECLARE_TYPE (vertex_buffer);
+COGL_GTYPE_DECLARE_TYPE (vertex_buffer_indices);
+
/**
* cogl_vertex_buffer_new:
* @n_vertices: The number of vertices that your attributes will correspond to.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]