[cogl/wip/cogl-sharp: 3/8] cogl-sharp: Expose PipelineFiter
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-sharp: 3/8] cogl-sharp: Expose PipelineFiter
- Date: Tue, 2 Oct 2012 16:16:29 +0000 (UTC)
commit fb74ef19dd797194d854ad0f7bcb635b2db57f31
Author: Damien Lespiau <damien lespiau intel com>
Date: Mon Oct 1 22:33:14 2012 +0100
cogl-sharp: Expose PipelineFiter
And the 3 corresponding methods in Pipeline.
cogl-sharp/Makefile.am | 1 +
cogl-sharp/PipelineFilter.cs | 15 +++++++++++++++
cogl-sharp/_Pipeline.cs | 24 ++++++++++++++++++++++++
cogl-sharp/parse-gir.py | 1 +
4 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/cogl-sharp/Makefile.am b/cogl-sharp/Makefile.am
index 4db7611..5fcd53c 100644
--- a/cogl-sharp/Makefile.am
+++ b/cogl-sharp/Makefile.am
@@ -20,6 +20,7 @@ sources = \
OnScreen.cs \
Pipeline.cs \
_Pipeline.cs \
+ PipelineFilter.cs \
PipelineWrapMode.cs \
PixelFormat.cs \
AssemblyInfo.cs \
diff --git a/cogl-sharp/PipelineFilter.cs b/cogl-sharp/PipelineFilter.cs
new file mode 100644
index 0000000..b48d793
--- /dev/null
+++ b/cogl-sharp/PipelineFilter.cs
@@ -0,0 +1,15 @@
+/* This file has been generated by parse-gir.py, do not hand edit */
+using System;
+
+namespace Cogl
+{
+ public enum PipelineFilter
+ {
+ Nearest = 9728,
+ Linear = 9729,
+ NearestMipmapNearest = 9984,
+ LinearMipmapNearest = 9985,
+ NearestMipmapLinear = 9986,
+ LinearMipmapLinear = 9987
+ }
+}
diff --git a/cogl-sharp/_Pipeline.cs b/cogl-sharp/_Pipeline.cs
index ed44652..fef8c4e 100644
--- a/cogl-sharp/_Pipeline.cs
+++ b/cogl-sharp/_Pipeline.cs
@@ -40,6 +40,22 @@ namespace Cogl
}
[DllImport("cogl2.dll")]
+ public static extern PipelineFilter cogl_pipeline_get_layer_mag_filter(IntPtr o, int layer_index);
+
+ public PipelineFilter GetLayerMagFilter(int layer_index)
+ {
+ return cogl_pipeline_get_layer_mag_filter(handle, layer_index);
+ }
+
+ [DllImport("cogl2.dll")]
+ public static extern PipelineFilter cogl_pipeline_get_layer_min_filter(IntPtr o, int layer_index);
+
+ public PipelineFilter GetLayerMinFilter(int layer_index)
+ {
+ return cogl_pipeline_get_layer_min_filter(handle, layer_index);
+ }
+
+ [DllImport("cogl2.dll")]
public static extern PipelineWrapMode cogl_pipeline_get_layer_wrap_mode_p(IntPtr o, int layer_index);
public PipelineWrapMode GetLayerWrapModeP(int layer_index)
@@ -128,6 +144,14 @@ namespace Cogl
}
[DllImport("cogl2.dll")]
+ public static extern void cogl_pipeline_set_layer_filters(IntPtr o, int layer_index, PipelineFilter min_filter, PipelineFilter mag_filter);
+
+ public void SetLayerFilters(int layer_index, PipelineFilter min_filter, PipelineFilter mag_filter)
+ {
+ cogl_pipeline_set_layer_filters(handle, layer_index, min_filter, mag_filter);
+ }
+
+ [DllImport("cogl2.dll")]
public static extern void cogl_pipeline_set_layer_matrix(IntPtr o, int layer_index, ref Matrix matrix);
public void SetLayerMatrix(int layer_index, ref Matrix matrix)
diff --git a/cogl-sharp/parse-gir.py b/cogl-sharp/parse-gir.py
index bb93651..991a022 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",
+ "PipelineFilter",
"PipelineWrapMode",
"PixelFormat"
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]