On Sun, 2010-01-10 at 16:49 +0800, Jianchun Zhou wrote: > I'm wondering why clutter_texture_new_from_pixbuf was removed,
it was removed almost two years ago, for Clutter 0.6, when we removed the explicit dependency on GdkPixbuf to increase portability. the dependency on GdkPixbuf is internal only and it's not exposed in the API so that, for instance, we can use CoreGraphics directly when building on Quartz. this reduces the list of dependencies and will hopefully lead to a GdkPixbuf-free future of Clutter on Linux as well. > if I want to create a texture from a chunk of memory data, what > should I do? there's a slight disconnect between what your premise and what you're asking. • if you explicitly want to use GdkPixbuf with ClutterTexture: the release notes section in the README file has an example of how to re-implement what clutter_texture_new_from_pixbuf() did; also, the gtk_clutter_texture_new_from_pixbuf() and gtk_clutter_texture_set_from_pixbuf() methods in clutter-gtk expose the same functionality (because if you're using Clutter and GTK+ then you surely have access to the GdkPixbuf API as well). • if you just have a chunk of memory data you want to display in a ClutterTexture: use clutter_texture_set_from_rgb_data(). ciao, Emmanuele. -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com