[vala/0.40] cogl-1.0: Fix out-params in Cogl.get_modelview_matrix/projection_matrix/bitmasks



commit ecfb995567f370e6a6b71554be39b8ca37ce7a38
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed May 8 12:25:20 2019 +0200

    cogl-1.0: Fix out-params in Cogl.get_modelview_matrix/projection_matrix/bitmasks
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/794

 vapi/cogl-1.0.vapi                       | 6 +++---
 vapi/packages/cogl-1.0/cogl-1.0.metadata | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/vapi/cogl-1.0.vapi b/vapi/cogl-1.0.vapi
index 0083631c6..f9c484cb7 100644
--- a/vapi/cogl-1.0.vapi
+++ b/vapi/cogl-1.0.vapi
@@ -704,13 +704,13 @@ namespace Cogl {
        [CCode (cheader_filename = "cogl/cogl.h")]
        public static bool get_backface_culling_enabled ();
        [CCode (cheader_filename = "cogl/cogl.h")]
-       public static void get_bitmasks (int red, int green, int blue, int alpha);
+       public static void get_bitmasks (out int red, out int green, out int blue, out int alpha);
        [CCode (cheader_filename = "cogl/cogl.h")]
        public static bool get_depth_test_enabled ();
        [CCode (cheader_filename = "cogl/cogl.h")]
        public static Cogl.FeatureFlags get_features ();
        [CCode (cheader_filename = "cogl/cogl.h")]
-       public static void get_modelview_matrix (Cogl.Matrix matrix);
+       public static void get_modelview_matrix (out Cogl.Matrix matrix);
        [CCode (cheader_filename = "cogl/cogl.h")]
        public static GLib.OptionGroup get_option_group ();
        [CCode (cheader_filename = "cogl/cogl.h")]
@@ -718,7 +718,7 @@ namespace Cogl {
        [CCode (cheader_filename = "cogl/cogl.h")]
        public static unowned Cogl.FuncPtr get_proc_address (string name);
        [CCode (cheader_filename = "cogl/cogl.h")]
-       public static void get_projection_matrix (Cogl.Matrix matrix);
+       public static void get_projection_matrix (out Cogl.Matrix matrix);
        [CCode (cheader_filename = "cogl/cogl.h")]
        public static void get_viewport ([CCode (array_length = false)] float[] v);
        [CCode (cheader_filename = "cogl/cogl.h")]
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.metadata b/vapi/packages/cogl-1.0/cogl-1.0.metadata
index 85026ec17..3cb184e8f 100644
--- a/vapi/packages/cogl-1.0/cogl-1.0.metadata
+++ b/vapi/packages/cogl-1.0/cogl-1.0.metadata
@@ -48,6 +48,10 @@ cogl_matrix_init_from_array hidden="1"
 cogl_matrix_init_identity hidden="1"
 cogl_matrix_transform_point.* is_ref="1"
 
+cogl_get_modelview_matrix.matrix is_out="1"
+cogl_get_projection_matrix.matrix is_out="1"
+cogl_get_bitmasks.* is_out="1"
+
 CoglPango* cheader_filename="cogl-pango/cogl-pango.h"
 cogl_pango_ensure_glyph_cache_for_layout cheader_filename="cogl-pango/cogl-pango.h"
 cogl_pango_render_* cheader_filename="cogl-pango/cogl-pango.h"


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