[cogl/wip/cogl-sharp: 6/8] cogl-sharp: Expose PipelineAlphaFunc
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-sharp: 6/8] cogl-sharp: Expose PipelineAlphaFunc
- Date: Tue, 2 Oct 2012 16:16:44 +0000 (UTC)
commit dca966f18a4fbc80a8a5fcbf0f8cec897c7e2da3
Author: Damien Lespiau <damien lespiau intel com>
Date: Mon Oct 1 22:46:18 2012 +0100
cogl-sharp: Expose PipelineAlphaFunc
And thus the two related Pipeline methods.
cogl-sharp/Makefile.am | 1 +
cogl-sharp/PipelineAlphaFunc.cs | 17 +++++++++++++++++
cogl-sharp/_Pipeline.cs | 16 ++++++++++++++++
cogl-sharp/parse-gir.py | 1 +
4 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/cogl-sharp/Makefile.am b/cogl-sharp/Makefile.am
index 143b07e..cac6906 100644
--- a/cogl-sharp/Makefile.am
+++ b/cogl-sharp/Makefile.am
@@ -20,6 +20,7 @@ sources = \
OnScreen.cs \
Pipeline.cs \
_Pipeline.cs \
+ PipelineAlphaFunc.cs \
PipelineCullFaceMode.cs \
PipelineFilter.cs \
PipelineWrapMode.cs \
diff --git a/cogl-sharp/PipelineAlphaFunc.cs b/cogl-sharp/PipelineAlphaFunc.cs
new file mode 100644
index 0000000..c6b6633
--- /dev/null
+++ b/cogl-sharp/PipelineAlphaFunc.cs
@@ -0,0 +1,17 @@
+/* This file has been generated by parse-gir.py, do not hand edit */
+using System;
+
+namespace Cogl
+{
+ public enum PipelineAlphaFunc
+ {
+ Never = 512,
+ Less = 513,
+ Equal = 514,
+ Lequal = 515,
+ Greater = 516,
+ Notequal = 517,
+ Gequal = 518,
+ Always = 519
+ }
+}
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index 3e66dd7..9f7672b 100644
--- a/cogl-sharp/_Pipeline.cs
+++ b/cogl-sharp/_Pipeline.cs
@@ -16,6 +16,14 @@ namespace Cogl
}
[DllImport("cogl2.dll")]
+ public static extern PipelineAlphaFunc cogl_pipeline_get_alpha_test_function(IntPtr o);
+
+ public PipelineAlphaFunc GetAlphaTestFunction()
+ {
+ return cogl_pipeline_get_alpha_test_function(handle);
+ }
+
+ [DllImport("cogl2.dll")]
public static extern float cogl_pipeline_get_alpha_test_reference(IntPtr o);
public float GetAlphaTestReference()
@@ -120,6 +128,14 @@ namespace Cogl
}
[DllImport("cogl2.dll")]
+ public static extern void cogl_pipeline_set_alpha_test_function(IntPtr o, PipelineAlphaFunc alpha_func, float alpha_reference);
+
+ public void SetAlphaTestFunction(PipelineAlphaFunc alpha_func, float alpha_reference)
+ {
+ cogl_pipeline_set_alpha_test_function(handle, alpha_func, alpha_reference);
+ }
+
+ [DllImport("cogl2.dll")]
public static extern void cogl_pipeline_set_blend_constant(IntPtr o, ref Color constant_color);
public void SetBlendConstant(ref Color constant_color)
diff --git a/cogl-sharp/parse-gir.py b/cogl-sharp/parse-gir.py
index c5181d1..87b8617 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",
+ "PipelineAlphaFunc",
"PipelineCullFaceMode",
"PipelineFilter",
"PipelineWrapMode",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]