diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-09-02 16:02:42 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2014-02-20 18:01:31 +0000 |
commit | 6a0f47f8c323f5ff77c85cbaa8a751f9461b80af (patch) | |
tree | b2d43c223cb9ce3d2922c09960ea712de83f5d29 /cogl/cogl-texture-2d.c | |
parent | 33597a60bf2452701dd03586f8c07a8ce276ab52 (diff) | |
download | cogl-wip/rib/introspection.tar.gz |
Registers gtypes for all public objects and structswip/rib/introspection
This adds much more comprehensive support for gobject-introspection based
bindings by registering all objects as fundamental types that inherit
from CoglObject, and all structs as boxed types.
Co-Author: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-texture-2d.c')
-rw-r--r-- | cogl/cogl-texture-2d.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index 28f32e09..e70d6ca4 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -50,6 +50,7 @@ #ifdef COGL_HAS_EGL_SUPPORT #include "cogl-winsys-egl-private.h" #endif +#include "cogl-gtype-private.h" #include <string.h> #include <math.h> @@ -61,6 +62,8 @@ static void _cogl_texture_2d_free (CoglTexture2D *tex_2d); COGL_TEXTURE_DEFINE (Texture2D, texture_2d); +COGL_GTYPE_DEFINE_CLASS (Texture2D, texture_2d, + COGL_GTYPE_IMPLEMENT_INTERFACE (texture)); static const CoglTextureVtable cogl_texture_2d_vtable; |