[cogl/lionel/introspection: 7/76] texture: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 7/76] texture: add introspection support
- Date: Wed, 11 Sep 2013 15:20:22 +0000 (UTC)
commit 41862e88ee62a20256c9ab70f8cbc7f73e790fee
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 bb074dc..6370a6b 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 4678884..3adf1a5 100644
--- a/cogl/cogl-texture.h
+++ b/cogl/cogl-texture.h
@@ -55,6 +55,8 @@ COGL_BEGIN_DECLS
#define COGL_TEXTURE_MAX_WASTE 127
+COGL_GTYPE_DECLARE_TYPE (texture);
+
/**
* COGL_TEXTURE_ERROR:
*
@@ -65,7 +67,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]