[cogl/wip/cogl-sharp: 4/8] cogl-sharp: Expose Winding



commit ce142deb8a32027e1e4394e31bea22ed62977848
Author: Damien Lespiau <damien lespiau intel com>
Date:   Mon Oct 1 22:35:49 2012 +0100

    cogl-sharp: Expose Winding
    
    And the couple of corresponding functions in Pipeline.

 cogl-sharp/Makefile.am  |    1 +
 cogl-sharp/Winding.cs   |   11 +++++++++++
 cogl-sharp/_Pipeline.cs |   16 ++++++++++++++++
 cogl-sharp/parse-gir.py |    3 ++-
 4 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/cogl-sharp/Makefile.am b/cogl-sharp/Makefile.am
index 5fcd53c..a794773 100644
--- a/cogl-sharp/Makefile.am
+++ b/cogl-sharp/Makefile.am
@@ -23,6 +23,7 @@ sources =			\
 	PipelineFilter.cs	\
 	PipelineWrapMode.cs	\
 	PixelFormat.cs		\
+	Winding.cs		\
 	AssemblyInfo.cs		\
 	$(NULL)
 
diff --git a/cogl-sharp/Winding.cs b/cogl-sharp/Winding.cs
new file mode 100644
index 0000000..4be99b9
--- /dev/null
+++ b/cogl-sharp/Winding.cs
@@ -0,0 +1,11 @@
+/* This file has been generated by parse-gir.py, do not hand edit */
+using System;
+
+namespace Cogl
+{
+    public enum Winding
+    {
+        Clockwise = 0,
+        CounterClockwise = 1
+    }
+}
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index fef8c4e..d19ec4a 100644
--- a/cogl-sharp/_Pipeline.cs
+++ b/cogl-sharp/_Pipeline.cs
@@ -40,6 +40,14 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
+        public static extern Winding cogl_pipeline_get_front_face_winding(IntPtr o);
+
+        public Winding GetFrontFaceWinding()
+        {
+            return cogl_pipeline_get_front_face_winding(handle);
+        }
+
+        [DllImport("cogl2.dll")]
         public static extern PipelineFilter cogl_pipeline_get_layer_mag_filter(IntPtr o, int layer_index);
 
         public PipelineFilter GetLayerMagFilter(int layer_index)
@@ -136,6 +144,14 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
+        public static extern void cogl_pipeline_set_front_face_winding(IntPtr o, Winding front_winding);
+
+        public void SetFrontFaceWinding(Winding front_winding)
+        {
+            cogl_pipeline_set_front_face_winding(handle, front_winding);
+        }
+
+        [DllImport("cogl2.dll")]
         public static extern void cogl_pipeline_set_layer_combine_constant(IntPtr o, int layer_index, ref Color constant);
 
         public void SetLayerCombineConstant(int layer_index, ref Color constant)
diff --git a/cogl-sharp/parse-gir.py b/cogl-sharp/parse-gir.py
index 991a022..9e593cf 100755
--- a/cogl-sharp/parse-gir.py
+++ b/cogl-sharp/parse-gir.py
@@ -11,7 +11,8 @@ enum_types = (
     "ColorMask",
     "PipelineFilter",
     "PipelineWrapMode",
-    "PixelFormat"
+    "PixelFormat",
+    "Winding"
 )
 
 # object types to dump (.gir names)



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