[cogl/lionel/introspection-next: 6/42] texture-3d: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 6/42] texture-3d: add introspection support
- Date: Tue, 10 Dec 2013 21:50:47 +0000 (UTC)
commit 6e242a629a6b2199c491993bc5b04e6ef0ca8ceb
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 12:05:11 2013 +0100
texture-3d: add introspection support
cogl/cogl-texture-3d.c | 3 +++
cogl/cogl-texture-3d.h | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-3d.c b/cogl/cogl-texture-3d.c
index c4d4679..84a35b5 100644
--- a/cogl/cogl-texture-3d.c
+++ b/cogl/cogl-texture-3d.c
@@ -40,6 +40,7 @@
#include "cogl-pipeline-opengl-private.h"
#include "cogl-error-private.h"
#include "cogl-util-gl-private.h"
+#include "cogl-gtype-private.h"
#include <string.h>
#include <math.h>
@@ -55,6 +56,8 @@
static void _cogl_texture_3d_free (CoglTexture3D *tex_3d);
COGL_TEXTURE_DEFINE (Texture3D, texture_3d);
+COGL_GTYPE_DEFINE_CLASS (Texture3D, texture_3d,
+ COGL_GTYPE_IMPLEMENT_INTERFACE (texture));
static const CoglTextureVtable cogl_texture_3d_vtable;
diff --git a/cogl/cogl-texture-3d.h b/cogl/cogl-texture-3d.h
index 7aca7e2..efdc5b5 100644
--- a/cogl/cogl-texture-3d.h
+++ b/cogl/cogl-texture-3d.h
@@ -47,6 +47,8 @@ typedef struct _CoglTexture3D CoglTexture3D;
#define COGL_TEXTURE_3D(X) ((CoglTexture3D *)X)
+COGL_GTYPE_DECLARE_TYPE (texture_3d);
+
/**
* cogl_texture_3d_new_with_size:
* @context: a #CoglContext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]