Actually, clutter_texture_set_from_file will call cogl_texture_new_from_file to get the texture. So you can call cogl_texture_new_from_data to do that.
Mit freundlichen Grüßen / Best regards BeQIK Charles / Chen Kai (陈 凯) RBAC/CM/ESW1-CN -----Original Message----- From: clutter-app-devel-list-boun...@clutter-project.org [mailto:clutter-app-devel-list-boun...@clutter-project.org] On Behalf Of Frank Thor Sent: Friday, April 27, 2012 5:00 PM To: clutter-app-devel-list@clutter-project.org Subject: Setting a clutter_texture from binary char* Hi everyone, i have hte following problem: Im getting a binary image file as a char[] via network. Mostly its a png or jpg, now my question: Is there a function like clutter_texture_set_from_data or how can i do that. Problem is that saving my image to the disc and calling clutter_texture_set_from_file ist very slow, because first i have to write the file and after that clutter has to read it and uncompress if its a JPG or PNG .... Is there any solution? Im completely new to clutter so it would be great if someone could help me. :) _______________________________________________ clutter-app-devel-list mailing list clutter-app-devel-list@clutter-project.org http://lists.clutter-project.org/listinfo/clutter-app-devel-list _______________________________________________ clutter-app-devel-list mailing list clutter-app-devel-list@clutter-project.org http://lists.clutter-project.org/listinfo/clutter-app-devel-list