[cogl/lionel/introspection: 10/76] texture-2d-sliced: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 10/76] texture-2d-sliced: add introspection support
- Date: Wed, 11 Sep 2013 15:20:37 +0000 (UTC)
commit 865088eee0ea1d657cc119abfb7aa2070e3b8995
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 13:17:57 2013 +0100
texture-2d-sliced: add introspection support
cogl/cogl-texture-2d-sliced.c | 3 +++
cogl/cogl-texture-2d-sliced.h | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-2d-sliced.c b/cogl/cogl-texture-2d-sliced.c
index 9d8282b..1f3fec1 100644
--- a/cogl/cogl-texture-2d-sliced.c
+++ b/cogl/cogl-texture-2d-sliced.c
@@ -49,6 +49,7 @@
#include "cogl-primitive-texture.h"
#include "cogl-error-private.h"
#include "cogl-texture-gl-private.h"
+#include "cogl-gtype-private.h"
#include <string.h>
#include <stdlib.h>
@@ -57,6 +58,8 @@
static void _cogl_texture_2d_sliced_free (CoglTexture2DSliced *tex_2ds);
COGL_TEXTURE_DEFINE (Texture2DSliced, texture_2d_sliced);
+COGL_GTYPE_DEFINE_CLASS (Texture2DSliced, texture_2d_sliced,
+ COGL_GTYPE_IMPLEMENT_INTERFACE (texture));
static const CoglTextureVtable cogl_texture_2d_sliced_vtable;
diff --git a/cogl/cogl-texture-2d-sliced.h b/cogl/cogl-texture-2d-sliced.h
index 6041846..be51980 100644
--- a/cogl/cogl-texture-2d-sliced.h
+++ b/cogl/cogl-texture-2d-sliced.h
@@ -64,6 +64,8 @@
typedef struct _CoglTexture2DSliced CoglTexture2DSliced;
#define COGL_TEXTURE_2D_SLICED(X) ((CoglTexture2DSliced *)X)
+COGL_GTYPE_DECLARE_TYPE (texture_2d_sliced);
+
/**
* cogl_texture_2d_sliced_new_with_size:
* @ctx: A #CoglContext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]