]> 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)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 6 Feb 2011 08:12:05 +0000 (09:12 +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 f1745c82f61ff75723b69a3de5c2736d04226d25..eb7def3ae05f7347b3c97d14ee9223ce91b6a71b 100644 (file)
@@ -356,11 +356,11 @@ namespace Cogl {
                public uint type;
                public uint flags;
                public static bool equal (void* v1, void* v2);
-               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);
@@ -368,7 +368,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 564413b58d0cb317502843a780ebc490b533eeb8..6b457cf5d9fd731ecd83a80e4856dbdbbf117147 100644 (file)
@@ -176,7 +176,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 d445702b84f999733cd4ee7b859eb7698d25eb03..fd4ee144b60ed11f45853723700a2cac7fb4f4de 100644 (file)
@@ -40,9 +40,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"