[cogl/wip/cogl-sharp: 49/51] cogl-sharp: Don't generated methods with out parameters yet



commit 2e52a968183061ab509be5603ce4b025da39c5f5
Author: Damien Lespiau <damien lespiau intel com>
Date:   Fri Jan 4 20:53:47 2013 +0000

    cogl-sharp: Don't generated methods with out parameters yet
    
    We don't support them for now, however a bug in parse-gir.py led to
    generating them.

 cogl-sharp/_FrameBuffer.cs |   24 ------------------------
 cogl-sharp/_Pipeline.cs    |    8 --------
 cogl-sharp/_Texture.cs     |    8 --------
 cogl-sharp/parse-gir.py    |    1 +
 4 files changed, 1 insertions(+), 40 deletions(-)
---
diff --git a/cogl-sharp/_FrameBuffer.cs b/cogl-sharp/_FrameBuffer.cs
index 8f40e5c..247d839 100644
--- a/cogl-sharp/_FrameBuffer.cs
+++ b/cogl-sharp/_FrameBuffer.cs
@@ -153,22 +153,6 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
-        public static extern void cogl_framebuffer_get_modelview_matrix(IntPtr o);
-
-        public void GetModelviewMatrix()
-        {
-            cogl_framebuffer_get_modelview_matrix(handle);
-        }
-
-        [DllImport("cogl2.dll")]
-        public static extern void cogl_framebuffer_get_projection_matrix(IntPtr o);
-
-        public void GetProjectionMatrix()
-        {
-            cogl_framebuffer_get_projection_matrix(handle);
-        }
-
-        [DllImport("cogl2.dll")]
         public static extern int cogl_framebuffer_get_red_bits(IntPtr o);
 
         public int GetRedBits()
@@ -185,14 +169,6 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
-        public static extern void cogl_framebuffer_get_viewport4fv(IntPtr o);
-
-        public void GetViewport4fv()
-        {
-            cogl_framebuffer_get_viewport4fv(handle);
-        }
-
-        [DllImport("cogl2.dll")]
         public static extern float cogl_framebuffer_get_viewport_height(IntPtr o);
 
         public float GetViewportHeight()
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index 4c84432..ef6e957 100644
--- a/cogl-sharp/_Pipeline.cs
+++ b/cogl-sharp/_Pipeline.cs
@@ -32,14 +32,6 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
-        public static extern void cogl_pipeline_get_color(IntPtr o);
-
-        public void GetColor()
-        {
-            cogl_pipeline_get_color(handle);
-        }
-
-        [DllImport("cogl2.dll")]
         public static extern ColorMask cogl_pipeline_get_color_mask(IntPtr o);
 
         public ColorMask GetColorMask()
diff --git a/cogl-sharp/_Texture.cs b/cogl-sharp/_Texture.cs
index 47f7aa3..b175f7d 100644
--- a/cogl-sharp/_Texture.cs
+++ b/cogl-sharp/_Texture.cs
@@ -15,14 +15,6 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
-        public static extern bool cogl_texture_get_gl_texture(IntPtr o);
-
-        public bool GetGlTexture()
-        {
-            return cogl_texture_get_gl_texture(handle);
-        }
-
-        [DllImport("cogl2.dll")]
         public static extern uint cogl_texture_get_height(IntPtr o);
 
         public uint GetHeight()
diff --git a/cogl-sharp/parse-gir.py b/cogl-sharp/parse-gir.py
index 4a0939b..073ee23 100755
--- a/cogl-sharp/parse-gir.py
+++ b/cogl-sharp/parse-gir.py
@@ -304,6 +304,7 @@ def generate_method(node, overrides, fo):
             if direction == 'out':
                 print("  Skipping %s, out parameters not supported yet" %
                       (cs_method_name))
+                generatable = False
                 break
 
             param_type = param.getElementsByTagName("type")



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