[cogl/lionel/introspection-next: 12/45] framebuffer: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 12/45] framebuffer: add introspection support
- Date: Fri, 15 Nov 2013 15:42:07 +0000 (UTC)
commit e82f9f5491f2b3f1c5b426121717f850c5195fd8
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 13:44:45 2013 +0100
framebuffer: add introspection support
cogl/cogl-framebuffer.c | 2 ++
cogl/cogl-framebuffer.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 4957b38..0ec0cb4 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -49,6 +49,7 @@
#include "cogl-primitives-private.h"
#include "cogl-error-private.h"
#include "cogl-texture-gl-private.h"
+#include "cogl-gtype-private.h"
typedef struct _CoglFramebufferStackEntry
{
@@ -68,6 +69,7 @@ COGL_OBJECT_DEFINE_WITH_CODE (Offscreen, offscreen,
_cogl_offscreen_class.virt_unref =
_cogl_framebuffer_unref);
COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (offscreen);
+COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer);
/* XXX:
* The CoglObject macros don't support any form of inheritance, so for
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index 45f0157..f5280a2 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -90,6 +90,8 @@ COGL_BEGIN_DECLS
#define COGL_FRAMEBUFFER(X) ((CoglFramebuffer *)(X))
+COGL_GTYPE_DECLARE_TYPE (framebuffer);
+
/**
* cogl_framebuffer_allocate:
* @framebuffer: A #CoglFramebuffer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]