[vala] cogl-1.0: Fix some array arguments in Cogl.Texture
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] cogl-1.0: Fix some array arguments in Cogl.Texture
- Date: Thu, 6 Mar 2014 20:38:15 +0000 (UTC)
commit 4a7315967549367d5b3d9f3979afea2c1b6640a1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Mar 6 21:34:49 2014 +0100
cogl-1.0: Fix some array arguments in Cogl.Texture
vapi/cogl-1.0.vapi | 5 +++--
vapi/packages/cogl-1.0/cogl-1.0-custom.vala | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/vapi/cogl-1.0.vapi b/vapi/cogl-1.0.vapi
index b245d42..0083631 100644
--- a/vapi/cogl-1.0.vapi
+++ b/vapi/cogl-1.0.vapi
@@ -225,14 +225,15 @@ namespace Cogl {
public Texture.from_bitmap (Cogl.Bitmap bmp_handle, Cogl.TextureFlags flags, Cogl.PixelFormat
internal_format);
public Texture.from_data (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat
format, Cogl.PixelFormat internal_format, uint rowstride, [CCode (array_length = false)] uchar[] data);
public Texture.from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat
internal_format) throws GLib.Error;
- public int get_data (Cogl.PixelFormat format, uint rowstride, uchar[] data);
+ public Texture.from_sub_texture (Cogl.Texture full_texture, int sub_x, int sub_y, int
sub_width, int sub_height);
+ public int get_data (Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)]
uint8[] data);
public Cogl.PixelFormat get_format ();
public uint get_height ();
public int get_max_waste ();
public uint get_rowstride ();
public uint get_width ();
public bool is_sliced ();
- public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint
dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, uchar[] data);
+ public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint
dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)]
uint8[] data);
public Texture.with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat
internal_format);
}
[CCode (cheader_filename = "cogl/cogl.h")]
diff --git a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
index 1211268..0fca38c 100644
--- a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
+++ b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
@@ -148,7 +148,7 @@ namespace Cogl {
[Compact]
[CCode (cname = "CoglHandle", ref_function = "cogl_texture_ref", unref_function =
"cogl_texture_unref")]
public class Texture: Handle {
- public int get_data (Cogl.PixelFormat format, uint rowstride, uchar[] data);
+ public int get_data (Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)]
uint8[] data);
public Cogl.PixelFormat get_format ();
public uint get_height ();
public int get_max_waste ();
@@ -158,8 +158,9 @@ namespace Cogl {
public Texture.from_bitmap (Cogl.Bitmap bmp_handle, Cogl.TextureFlags flags, Cogl.PixelFormat
internal_format);
public Texture.from_data (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat
format, Cogl.PixelFormat internal_format, uint rowstride, [CCode (array_length = false)] uchar[] data);
public Texture.from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat
internal_format) throws GLib.Error;
+ public Texture.from_sub_texture (Cogl.Texture full_texture, int sub_x, int sub_y, int
sub_width, int sub_height);
public Texture.with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat
internal_format);
- public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint
dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, uchar[] data);
+ public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint
dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)]
uint8[] data);
}
[Compact]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]