[cogl/lionel/introspection-next: 4/44] texture: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 4/44] texture: add introspection support
- Date: Sun, 9 Feb 2014 21:16:13 +0000 (UTC)
commit 582b15b9f1e5aa3906024c9c42edab849d3e2295
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 e2abde6..c964346 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 d4e40c5..dadbb40 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]