]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
cogl-1.0: Fix out-params in Cogl.get_modelview_matrix/projection_matrix/bitmasks
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 8 May 2019 10:25:20 +0000 (12:25 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 6 Aug 2019 12:01:36 +0000 (14:01 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/794

vapi/cogl-1.0.vapi
vapi/packages/cogl-1.0/cogl-1.0.metadata

index 0083631c6f2ecfba1c9ad9a9a4d40c355093eadc..f9c484cb754824cd917299ec29d96d0af8be5c81 100644 (file)
@@ -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")]
index 85026ec17abb8872bb5c4662b92e35121da810e4..3cb184e8f4f598bb682f55810847b1e1363d54b2 100644 (file)
@@ -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"