[cogl/wip/cogl-sharp: 4/13] cogl-sharp: Don't expose color components as properties



commit 0d320bfdb5a1836e303fd223bafaaa5d24c1434f
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sat Sep 29 20:56:20 2012 +0100

    cogl-sharp: Don't expose color components as properties
    
    Properties don't give you anything at all there.

 cogl-sharp/Color.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/cogl-sharp/Color.cs b/cogl-sharp/Color.cs
index f19da49..a19cc7c 100644
--- a/cogl-sharp/Color.cs
+++ b/cogl-sharp/Color.cs
@@ -6,10 +6,10 @@ namespace Cogl
     [StructLayout(LayoutKind.Sequential)]
     public struct Color
     {
-        public float Red { get; set; }
-        public float Green { get; set; }
-        public float Blue { get; set; }
-        public float Alpha { get; set; }
+        public float red;
+        public float green;
+        public float blue;
+        public float alpha;
 
         [DllImport("cogl2.dll")]
         private static extern void cogl_color_premultiply(ref Color color);
@@ -29,7 +29,7 @@ namespace Cogl
 
         public override String ToString()
         {
-            return String.Format("({0},{1},{2},{3})", Red, Green, Blue, Alpha);
+            return String.Format("({0},{1},{2},{3})", red, green, blue, alpha);
         }
     }
 }



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