]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
cogl-1.0: Fix Matrix from_array, get_inverse and transform_point
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 6 Feb 2011 08:12:05 +0000 (09:12 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 12 Mar 2011 14:29:17 +0000 (15:29 +0100)
vapi/cogl-1.0.vapi
vapi/packages/cogl-1.0/cogl-1.0-custom.vala
vapi/packages/cogl-1.0/cogl-1.0.metadata

index 715eb2636727342b1b5aa9f2941d3476555701da..84fc48a05b66d1bc446d17d800abf689b99f3b49 100644 (file)
@@ -257,11 +257,11 @@ namespace Cogl {
                public weak float[] inv;
                public uint type;
                public uint flags;
-               public Matrix.from_array (float[] array);
+               public Matrix.from_array ([CCode (array_length = false)] float[] array);
                public void frustum (float left, float right, float bottom, float top, float z_near, float z_far);
                [CCode (array_length = false)]
                public unowned float[] get_array ();
-               public bool get_inverse (Cogl.Matrix inverse);
+               public bool get_inverse (out Cogl.Matrix inverse);
                public Matrix.identity ();
                [CCode (cname = "cogl_matrix_multiply")]
                public Matrix.multiply (Cogl.Matrix a, Cogl.Matrix b);
@@ -269,7 +269,7 @@ namespace Cogl {
                public void perspective (float fov_y, float aspect, float z_near, float z_far);
                public void rotate (float angle, float x, float y, float z);
                public void scale (float sx, float sy, float sz);
-               public void transform_point (float x, float y, float z, float w);
+               public void transform_point (ref float x, ref float y, ref float z, ref float w);
                public void translate (float x, float y, float z);
        }
        [CCode (type_id = "COGL_TYPE_TEXTURE_VERTEX", cheader_filename = "cogl/cogl.h")]
index be78ad8d6b82ba9e303098b1c80aa9a7948e6979..47da825d8679e715673097b492836a9981e096fd 100644 (file)
@@ -178,7 +178,7 @@ namespace Cogl {
        [CCode (type_id = "COGL_TYPE_MATRIX", cheader_filename = "cogl/cogl.h")]
        public struct Matrix {
                [CCode (cname = "cogl_matrix_init_from_array", array_length = false, array_null_terminated = false)]
-               public Matrix.from_array (float[] array);
+               public Matrix.from_array ([CCode (array_length = false)] float[] array);
                [CCode (cname = "cogl_matrix_init_identity")]
                public Matrix.identity ();
                [CCode (cname = "cogl_matrix_multiply")]
index 5ae6077604322c090793879df10b00c877e2cf4e..1c3c6f6d7f9e24b2f08636b01297e5fc87f0276c 100644 (file)
@@ -39,9 +39,11 @@ cogl_is_vertex_buffer hidden="1"
 
 CoglMatrix is_value_type="1"
 cogl_matrix_get_array is_array="1" no_array_length="1"
+cogl_matrix_get_inverse.inverse is_out="1"
 cogl_matrix_multiply hidden="1"
 cogl_matrix_init_from_array hidden="1"
 cogl_matrix_init_identity hidden="1"
+cogl_matrix_transform_point.* is_ref="1"
 
 cogl_pop_draw_buffer hidden="1"
 cogl_push_draw_buffer hidden="1"