[cogl/lionel/introspection: 14/76] texture-rectangle: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 14/76] texture-rectangle: add introspection support
- Date: Wed, 11 Sep 2013 15:20:57 +0000 (UTC)
commit 94115619a77c3b4edf5397bee0bdb3b0b2a02eb5
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 13:55:44 2013 +0100
texture-rectangle: add introspection support
cogl/cogl-texture-rectangle.c | 3 +++
cogl/cogl-texture-rectangle.h | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-rectangle.c b/cogl/cogl-texture-rectangle.c
index 80b627a..a994faf 100644
--- a/cogl/cogl-texture-rectangle.c
+++ b/cogl/cogl-texture-rectangle.c
@@ -39,6 +39,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>
@@ -57,6 +58,8 @@
static void _cogl_texture_rectangle_free (CoglTextureRectangle *tex_rect);
COGL_TEXTURE_DEFINE (TextureRectangle, texture_rectangle);
+COGL_GTYPE_DEFINE_CLASS (TextureRectangle, texture_rectangle,
+ COGL_GTYPE_IMPLEMENT_INTERFACE (texture));
static const CoglTextureVtable cogl_texture_rectangle_vtable;
diff --git a/cogl/cogl-texture-rectangle.h b/cogl/cogl-texture-rectangle.h
index cd8f5f9..5e0dfc5 100644
--- a/cogl/cogl-texture-rectangle.h
+++ b/cogl/cogl-texture-rectangle.h
@@ -63,6 +63,8 @@ COGL_BEGIN_DECLS
typedef struct _CoglTextureRectangle CoglTextureRectangle;
#define COGL_TEXTURE_RECTANGLE(X) ((CoglTextureRectangle *)X)
+COGL_GTYPE_DECLARE_TYPE (texture_rectangle);
+
/**
* cogl_is_texture_rectangle:
* @object: A #CoglObject
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]