On Thu, 2009-12-31 at 16:31 +0800, Jianchun Zhou wrote:

> In Clutter, Can I create a worker thread for creating actors and add
> them into the stage?

no.

> I found when creating ClutterRectangle, It can work, but when it comes
> to ClutterTexture, it failed.
> 
> Can anybody help me.

yes: don't use the Clutter API from any other thread than the one that
called clutter_init() and clutter_main().

if you are using threads to load an image from storage into a
ClutterTexture, use the :load-async property of the ClutterTexture class
and call clutter_threads_init() before clutter_init(); this will let
Clutter use a worker thread to avoid blocking in
clutter_texture_set_from_file().

ciao,
 Emmanuele.


-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com

Reply via email to