[cogl/lionel/introspection-next: 8/44] texture-rectangle: add introspection support



commit c1cedd3a7afcc47d8be96c3454b773616462d28f
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 13:55:44 2013 +0100

    texture-rectangle: add introspection support

 cogl/cogl-texture-rectangle.c |    3 +++
 cogl/cogl-texture-rectangle.h |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-rectangle.c b/cogl/cogl-texture-rectangle.c
index 02bdb5f..f86812d 100644
--- a/cogl/cogl-texture-rectangle.c
+++ b/cogl/cogl-texture-rectangle.c
@@ -39,6 +39,7 @@
 #include "cogl-pipeline-opengl-private.h"
 #include "cogl-error-private.h"
 #include "cogl-util-gl-private.h"
+#include "cogl-gtype-private.h"
 
 #include <string.h>
 #include <math.h>
@@ -57,6 +58,8 @@
 static void _cogl_texture_rectangle_free (CoglTextureRectangle *tex_rect);
 
 COGL_TEXTURE_DEFINE (TextureRectangle, texture_rectangle);
+COGL_GTYPE_DEFINE_CLASS (TextureRectangle, texture_rectangle,
+                         COGL_GTYPE_IMPLEMENT_INTERFACE (texture));
 
 static const CoglTextureVtable cogl_texture_rectangle_vtable;
 
diff --git a/cogl/cogl-texture-rectangle.h b/cogl/cogl-texture-rectangle.h
index 421e331..77c1a43 100644
--- a/cogl/cogl-texture-rectangle.h
+++ b/cogl/cogl-texture-rectangle.h
@@ -63,6 +63,8 @@ COGL_BEGIN_DECLS
 typedef struct _CoglTextureRectangle CoglTextureRectangle;
 #define COGL_TEXTURE_RECTANGLE(X) ((CoglTextureRectangle *)X)
 
+COGL_GTYPE_DECLARE_TYPE (texture_rectangle);
+
 /**
  * cogl_is_texture_rectangle:
  * @object: A #CoglObject


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