summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-10-09 17:38:28 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2013-01-04 20:29:35 +0000
commit796549cf5cb06e2866b9e84a840bc892e3d5263c (patch)
treec00c2acaf1512e8b60d8677daf842bfc6693ad5f
parent7c7516ec1b157828e2e6781255d31edba90e21e0 (diff)
downloadcogl-796549cf5cb06e2866b9e84a840bc892e3d5263c.tar.gz
cogl-sharp: Overloads Pipeline's SetColor() to support 4 floats
Let's use overloading throughout this binding, this time for cogl_pipeline_set_color4f().
-rw-r--r--cogl-sharp/_Pipeline.cs2
-rwxr-xr-xcogl-sharp/parse-gir.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index 027b6717..b2271bf8 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 fc766819..42d86f29 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'
)