[cogl/lionel/introspection-next: 3/42] texture: add introspection support



commit f3f42b9fa7144662eff84a6cda2c4eab5093633c
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 12:04:54 2013 +0100

    texture: add introspection support

 cogl/cogl-texture.c |    3 +++
 cogl/cogl-texture.h |    3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-texture.c b/cogl/cogl-texture.c
index 1e9df8c..0b7984a 100644
--- a/cogl/cogl-texture.c
+++ b/cogl/cogl-texture.c
@@ -56,6 +56,7 @@
 #include "cogl-sub-texture.h"
 #include "cogl-primitive-texture.h"
 #include "cogl-error-private.h"
+#include "cogl-gtype-private.h"
 
 #include <string.h>
 #include <stdlib.h>
@@ -66,6 +67,8 @@
 #define GL_RED 0x1903
 #endif
 
+COGL_GTYPE_DEFINE_INTERFACE (Texture, texture);
+
 uint32_t
 cogl_texture_error_quark (void)
 {
diff --git a/cogl/cogl-texture.h b/cogl/cogl-texture.h
index a371f5b..66e9725 100644
--- a/cogl/cogl-texture.h
+++ b/cogl/cogl-texture.h
@@ -62,6 +62,8 @@ COGL_BEGIN_DECLS
 
 #define COGL_TEXTURE_MAX_WASTE  127
 
+COGL_GTYPE_DECLARE_TYPE (texture);
+
 /**
  * COGL_TEXTURE_ERROR:
  *
@@ -72,7 +74,6 @@ COGL_BEGIN_DECLS
  */
 #define COGL_TEXTURE_ERROR (cogl_texture_error_quark ())
 
-
 /**
  * CoglTextureError:
  * @COGL_TEXTURE_ERROR_SIZE: Unsupported size


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