[cogl/lionel/introspection-next: 35/45] shader: add introspection support



commit 049bfd8781b0cd44995f4be2499a8126c17e57f5
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Thu Sep 5 16:05:32 2013 +0100

    shader: add introspection support

 cogl/deprecated/cogl-program.c |    2 ++
 cogl/deprecated/cogl-shader.c  |    2 ++
 cogl/deprecated/cogl-shader.h  |    3 +++
 3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/cogl/deprecated/cogl-program.c b/cogl/deprecated/cogl-program.c
index 70a94b3..7c1ec11 100644
--- a/cogl/deprecated/cogl-program.c
+++ b/cogl/deprecated/cogl-program.c
@@ -33,6 +33,7 @@
 
 #include "cogl-shader-private.h"
 #include "cogl-program-private.h"
+#include "cogl-gtype-private.h"
 
 #include <string.h>
 
@@ -40,6 +41,7 @@ static void _cogl_program_free (CoglProgram *program);
 
 COGL_HANDLE_DEFINE (Program, program);
 COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (program);
+COGL_GTYPE_DEFINE_CLASS (Program, program);
 
 /* A CoglProgram is effectively just a list of shaders that will be
    used together and a set of values for the custom uniforms. No
diff --git a/cogl/deprecated/cogl-shader.c b/cogl/deprecated/cogl-shader.c
index c28d4a2..d4f695c 100644
--- a/cogl/deprecated/cogl-shader.c
+++ b/cogl/deprecated/cogl-shader.c
@@ -31,6 +31,7 @@
 #include "cogl-object-private.h"
 #include "cogl-glsl-shader-private.h"
 #include "cogl-glsl-shader-boilerplate.h"
+#include "cogl-gtype-private.h"
 
 #include <glib.h>
 
@@ -40,6 +41,7 @@ static void _cogl_shader_free (CoglShader *shader);
 
 COGL_HANDLE_DEFINE (Shader, shader);
 COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (shader);
+COGL_GTYPE_DEFINE_CLASS (Shader, shader);
 
 #ifndef GL_FRAGMENT_SHADER
 #define GL_FRAGMENT_SHADER 0x8B30
diff --git a/cogl/deprecated/cogl-shader.h b/cogl/deprecated/cogl-shader.h
index e77ac74..ca1175e 100644
--- a/cogl/deprecated/cogl-shader.h
+++ b/cogl/deprecated/cogl-shader.h
@@ -218,6 +218,9 @@ COGL_BEGIN_DECLS
  * experimental #CoglShader API is the proposed replacement.
  */
 
+COGL_GTYPE_DECLARE_TYPE (program);
+COGL_GTYPE_DECLARE_TYPE (shader);
+
 /**
  * CoglShaderType:
  * @COGL_SHADER_TYPE_VERTEX: A program for proccessing vertices


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]