[cogl/cogl-sharp: 29/29] cogl-sharp: Overloads Pipeline's SetColor() to support 4 floats



commit 00474ab39b9ff98cd853cc7218a4963f08d298a2
Author: Damien Lespiau <damien lespiau intel com>
Date:   Tue Oct 9 17:38:28 2012 +0100

    cogl-sharp: Overloads Pipeline's SetColor() to support 4 floats
    
    Let's use overloading throughout this binding, this time for
    cogl_pipeline_set_color4f().

 cogl-sharp/_Pipeline.cs |    2 +-
 cogl-sharp/parse-gir.py |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index 027b671..b2271bf 100644
--- a/cogl-sharp/_Pipeline.cs
+++ b/cogl-sharp/_Pipeline.cs
@@ -171,7 +171,7 @@ namespace Cogl
         [DllImport("cogl2.dll")]
         public static extern void cogl_pipeline_set_color4f(IntPtr o, float red, float green, float blue, float alpha);
 
-        public void SetColor4f(float red, float green, float blue, float alpha)
+        public void SetColor(float red, float green, float blue, float alpha)
         {
             cogl_pipeline_set_color4f(handle, red, green, blue, alpha);
         }
diff --git a/cogl-sharp/parse-gir.py b/cogl-sharp/parse-gir.py
index fc76681..42d86f2 100755
--- a/cogl-sharp/parse-gir.py
+++ b/cogl-sharp/parse-gir.py
@@ -55,6 +55,9 @@ name_overrides = {
         'class': 'OffScreen'
     },
     'Pipeline': {
+        'methods': {
+            'set_color4f': 'set_color'
+        },
         'blacklist': (
             'set_uniform_float', 'set_uniform_int', 'set_uniform_matrix'
         )



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