[cogl/lionel/introspection-next: 7/44] texture-3d: add introspection support



commit 5823f90169ddeac258875de1635f50c14b7de65e
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 9ebfe2d..756e942 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 091812a..2148b6f 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]