[cogl/wip/cogl-sharp: 4/51] cogl-sharp: Don't expose color components as properties
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-sharp: 4/51] cogl-sharp: Don't expose color components as properties
- Date: Sat, 5 Jan 2013 16:48:37 +0000 (UTC)
commit 800a2bfc5507d183b54160e95654a29a34e89da1
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]