[cogl/wip/cogl-sharp: 13/42] 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: 13/42] cogl-sharp: Don't expose color components as properties
- Date: Mon, 22 Oct 2012 11:10:42 +0000 (UTC)
commit 1f592b1ec2f164ef01d8011dc97d2fc09cc33567
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]