[cogl/lionel/introspection: 12/76] texture-3d: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 12/76] texture-3d: add introspection support
- Date: Wed, 11 Sep 2013 15:20:47 +0000 (UTC)
commit d9cb8e47e6afe379314cd921895bbff39e7405d3
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 697b6c4..85333ec 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 0483d47..dc50f47 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]