Thank you for your reply, it is precisely what I need :) I figured I was missing something...
-----Original Message----- From: Elliot Smith [mailto:[email protected]] Sent: 09 August 2010 11:35 To: Mark Tucker Cc: [email protected] Subject: Re: Copying a ClutterTexture not possible? On Mon, 2010-08-09 at 11:22 +0100, Mark Tucker wrote: > Hello, > > I want to copy a ClutterTexture's pixel data from one ClutterTexture > to another, but I'm not sure I can see an obvious way in the API to be > able to get at the RGB data so that I can do this? > > You can use: CoglHandle handle = clutter_texture_get_cogl_texture(); to get a handle on the underlying data; then use clutter_texture_set_cogl_texture(handle); to set the data on another ClutterTexture. Hope this helps. Elliot > > I have a little app that receives a filename periodically and when it > receives the filename it will display that filename as an image. It > will do this by fading in the new one on top of the old one. I then > want to take the image data for the old one and copy it to an already > existing (but much smaller) ClutterTexture elsewhere on-screen as a > sort of "preview" or "thumbnail". > > At the point I do the above transition the file for the older image > may not be available, so I thought it would just be a case of using > clutter_texture_set_from_rgb_data or some other similar API feature > but I can't see a way of getting at the pixel data that the > ClutterTexture uses or any other way of copying it. > > > > Is there something obvious I'm missing here or is the ability to do > this not available/limited in some way? > > > > This is with Clutter 1.2.10. > > > > Thanks > > > > Mark Tucker > > > > -- Elliot Smith Intel Open Source Technology Centre --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
