[cogl/lionel/introspection-next: 10/44] sub-texture: add introspection support



commit 5404742eff8d8def75b9d84bae5cfca69cbbd547
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 15:38:17 2013 +0100

    sub-texture: add introspection support

 cogl/cogl-sub-texture.c |    2 ++
 cogl/cogl-sub-texture.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-sub-texture.c b/cogl/cogl-sub-texture.c
index 8f18229..e39518d 100644
--- a/cogl/cogl-sub-texture.c
+++ b/cogl/cogl-sub-texture.c
@@ -38,6 +38,7 @@
 #include "cogl-texture-rectangle-private.h"
 #include "cogl-texture-2d.h"
 #include "cogl-texture-gl-private.h"
+#include "cogl-gtype-private.h"
 
 #include <string.h>
 #include <math.h>
@@ -45,6 +46,7 @@
 static void _cogl_sub_texture_free (CoglSubTexture *sub_tex);
 
 COGL_TEXTURE_DEFINE (SubTexture, sub_texture);
+COGL_GTYPE_DEFINE_CLASS (SubTexture, sub_texture);
 
 static const CoglTextureVtable cogl_sub_texture_vtable;
 
diff --git a/cogl/cogl-sub-texture.h b/cogl/cogl-sub-texture.h
index 1130b83..41fdf96 100644
--- a/cogl/cogl-sub-texture.h
+++ b/cogl/cogl-sub-texture.h
@@ -47,6 +47,8 @@ COGL_BEGIN_DECLS
 #define COGL_SUB_TEXTURE(tex) ((CoglSubTexture *) tex)
 typedef struct _CoglSubTexture CoglSubTexture;
 
+COGL_GTYPE_DECLARE_TYPE (sub_texture);
+
 /**
  * cogl_sub_texture_new:
  * @ctx: A #CoglContext pointer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]