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



commit 5809d83e24b81242f1aa2d4265c4c6e592443f6a
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 a04b646..e01edaf 100644
--- a/cogl-sharp/Color.cs
+++ b/cogl-sharp/Color.cs
@@ -31,10 +31,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);
@@ -54,7 +54,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]