Hello,

Don't know if you have already found... You can create a ClutterLabel,
then create a texture (which is also an actor) with
clutter_texture_new_from_actor, then create your shader (look at the
sample here: clutter/tests/test-fbo.c). And add the actor (created
with clutter_texture_new_from_actor) to your group, stage, ...

I can give you an example if you wish.

Rno


On Tue, Aug 26, 2008 at 3:51 PM, Gil <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to create a blur effect on text.
>
> First I need to pad the label so I'm creating a transparent ClutterRectangle
> and group it with ClutterLabel with some text.
>
> (using the following advice "A group can be padded with a transparent
> rectangle as to provide a border to contents for shader output (blurring
> text for example).
>
>
> Seconreated, I'm creating a ClutterTexture from this ClutterGroup (using
> clutter_texture_new_from_actor).
> Everything works well until I'm changing the text in the label and the
> texture size doesn't changed.
>
> It is because the ClutterGroup has been connected to the "notify::width" and
> "notify::height" signals, ClutterLabel  is not connected to these signals
> and when ClutterLabel size is being changed, on_fbo_source_size_change
> function is not being called and the ClutterTexture size does not changed.
>
> Any ideas?
>
> Thanks,
> Gil
>
> --
> To unsubscribe send a mail to [EMAIL PROTECTED]
>
>



--

 "Given enough eyeballs, all bugs are shallow"
 Eric Steven Raymond
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to