[cogl/lionel/introspection-next: 4/42] texture-2d: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 4/42] texture-2d: add introspection support
- Date: Tue, 10 Dec 2013 21:50:37 +0000 (UTC)
commit 2d3495cfeecad94e813004578066253afaf49e4a
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 12:05:28 2013 +0100
texture-2d: add introspection support
cogl/cogl-texture-2d.c | 3 +++
cogl/cogl-texture-2d.h | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index d422a7a..62fc48c 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -43,6 +43,7 @@
#ifdef COGL_HAS_EGL_SUPPORT
#include "cogl-winsys-egl-private.h"
#endif
+#include "cogl-gtype-private.h"
#include <string.h>
#include <math.h>
@@ -54,6 +55,8 @@
static void _cogl_texture_2d_free (CoglTexture2D *tex_2d);
COGL_TEXTURE_DEFINE (Texture2D, texture_2d);
+COGL_GTYPE_DEFINE_CLASS (Texture2D, texture_2d,
+ COGL_GTYPE_IMPLEMENT_INTERFACE (texture));
static const CoglTextureVtable cogl_texture_2d_vtable;
diff --git a/cogl/cogl-texture-2d.h b/cogl/cogl-texture-2d.h
index 7526755..07a7a69 100644
--- a/cogl/cogl-texture-2d.h
+++ b/cogl/cogl-texture-2d.h
@@ -55,6 +55,8 @@ COGL_BEGIN_DECLS
typedef struct _CoglTexture2D CoglTexture2D;
#define COGL_TEXTURE_2D(X) ((CoglTexture2D *)X)
+COGL_GTYPE_DECLARE_TYPE (texture_2d);
+
/**
* cogl_is_texture_2d:
* @object: A #CoglObject
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]