----- Original Message ---- From: ere wer <[EMAIL PROTECTED]> To: clutter <[email protected]> Sent: Monday, September 15, 2008 12:21:25 AM Subject: [clutter] [VALA][Binding]Problem with read_pixels Trying to use : weak uchar[] pixels = stage.read_pixels( 0, 0, width, height); results in: error: too many arguments to function `clutter_stage_read_pixels' the C file: guchar* _tmp1; gint pixels_length1; gint _tmp0; guchar* pixels; g_return_if_fail (IS_TEST_READ_PIXELS (self)); _tmp1 = NULL; pixels = (_tmp1 = clutter_stage_read_pixels (self->priv->stage, 0, 0, width, height, &_tmp0), pixels_length1 = _tmp0, _tmp1) NOTE, that changing the vapi to return uchar* instead of weak uchar[] works around the problem, but that is a hack I guess... NOTE, that the only other function returning weak array ref weak string[] markers = timeline.list_markers(frame); works fine! Is there an easy way to fix this? MihailNaydenov Seems the same goes fortexture.set_from_rgb_data Texture tex= new Texture(); uchar[] pixels = new uchar[stage.width*stage.height*4]; tex.set_from_rgb_data(pixels, true, stage.width, stage.height, stage.width*4, 4, 0); results in: error: too many arguments to function `clutter_texture_set_from_rgb_data' and in the C file it injects an additional pixel_length parameter into clutter_texture_set_from_rgb_data Im I missing something about arrays in vala :-\ MihailNaydenov -- To unsubscribe send a mail to [EMAIL PROTECTED] -- To unsubscribe send a mail to [EMAIL PROTECTED]
