[cogl/wip/cogl-sharp: 5/8] cogl-sharp: Expose PipelineCullFaceMode



commit 3cd0b0807b34ad59afe6027729ff91f291b4cd8a
Author: Damien Lespiau <damien lespiau intel com>
Date:   Mon Oct 1 22:43:03 2012 +0100

    cogl-sharp: Expose PipelineCullFaceMode
    
    And the methods in Pipeline using this type

 cogl-sharp/Makefile.am             |    1 +
 cogl-sharp/PipelineCullFaceMode.cs |   13 +++++++++++++
 cogl-sharp/_Pipeline.cs            |   16 ++++++++++++++++
 cogl-sharp/parse-gir.py            |    1 +
 4 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/cogl-sharp/Makefile.am b/cogl-sharp/Makefile.am
index a794773..143b07e 100644
--- a/cogl-sharp/Makefile.am
+++ b/cogl-sharp/Makefile.am
@@ -20,6 +20,7 @@ sources =			\
 	OnScreen.cs		\
 	Pipeline.cs		\
 	_Pipeline.cs		\
+	PipelineCullFaceMode.cs	\
 	PipelineFilter.cs	\
 	PipelineWrapMode.cs	\
 	PixelFormat.cs		\
diff --git a/cogl-sharp/PipelineCullFaceMode.cs b/cogl-sharp/PipelineCullFaceMode.cs
new file mode 100644
index 0000000..51ea5a4
--- /dev/null
+++ b/cogl-sharp/PipelineCullFaceMode.cs
@@ -0,0 +1,13 @@
+/* This file has been generated by parse-gir.py, do not hand edit */
+using System;
+
+namespace Cogl
+{
+    public enum PipelineCullFaceMode
+    {
+        None = 0,
+        Front = 1,
+        Back = 2,
+        Both = 3
+    }
+}
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index d19ec4a..3e66dd7 100644
--- a/cogl-sharp/_Pipeline.cs
+++ b/cogl-sharp/_Pipeline.cs
@@ -40,6 +40,14 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
+        public static extern PipelineCullFaceMode cogl_pipeline_get_cull_face_mode(IntPtr o);
+
+        public PipelineCullFaceMode GetCullFaceMode()
+        {
+            return cogl_pipeline_get_cull_face_mode(handle);
+        }
+
+        [DllImport("cogl2.dll")]
         public static extern Winding cogl_pipeline_get_front_face_winding(IntPtr o);
 
         public Winding GetFrontFaceWinding()
@@ -144,6 +152,14 @@ namespace Cogl
         }
 
         [DllImport("cogl2.dll")]
+        public static extern void cogl_pipeline_set_cull_face_mode(IntPtr o, PipelineCullFaceMode cull_face_mode);
+
+        public void SetCullFaceMode(PipelineCullFaceMode cull_face_mode)
+        {
+            cogl_pipeline_set_cull_face_mode(handle, cull_face_mode);
+        }
+
+        [DllImport("cogl2.dll")]
         public static extern void cogl_pipeline_set_front_face_winding(IntPtr o, Winding front_winding);
 
         public void SetFrontFaceWinding(Winding front_winding)
diff --git a/cogl-sharp/parse-gir.py b/cogl-sharp/parse-gir.py
index 9e593cf..c5181d1 100755
--- a/cogl-sharp/parse-gir.py
+++ b/cogl-sharp/parse-gir.py
@@ -9,6 +9,7 @@ C_NS = "http://www.gtk.org/introspection/c/1.0";
 enum_types = (
     "BufferBit",
     "ColorMask",
+    "PipelineCullFaceMode",
     "PipelineFilter",
     "PipelineWrapMode",
     "PixelFormat",



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