On Tue, Sep 29, 2009 at 3:30 PM, Neil Roberts <[email protected]> wrote:

>
> Aarto Matti <[email protected]> writes:
>
> > It it possible to get a CoglHandle of cloned group? I found two ways
> > how to create a 'live' clone, with either clutter_clone_new() or
> > clutter_texture_new_from_actor(). But clutter_texture_new_from_actor()
> > seems not to work with ClutterGroup and clutter_clone_new() returns
> > not a ClutterTexture object. In both I can't get a proper CoglHandle.
>
> clutter_texture_new_from_actor should work for a group and let you get a
> CoglHandle for the texture and it at least works for me. Please see the
> attached example adaptation of your code showing a reflection.
>
> Note however there's currently a bug with clutter_texture_new_from_actor
> which means the clone in your example will be slightly too small to
> contain the label. You could workaround this by putting your rectangle
> at the origin rather than at 20,20. See this for more details:
> http://bugzilla.openedhand.com/show_bug.cgi?id=1825
>
> - Neil
>
>
Neil, thanks for the example. But hmmm, clutter_texture_new_from_actor()
still doesn't handle groups for me. I receive the same warning as before:
Clutter-CRITICAL **: clutter_actor_set_x: assertion `CLUTTER_IS_ACTOR
(self)' failed

I use have version 1.0.0, maybe it's with a bug.

--
Aarto

Reply via email to