On Mon, 2008-07-21 at 13:01 +1000, Saul Lethbridge wrote:
> Hi,
> 
> I've created a clutter actor that I have drawn to using cairo. All is
> well until I resize the clutter actor and it appears course like
> resizing a standard texture from a png. How do I get around this?
> 
> Thanks for any help at all.
> 

To resize a ClutterCairo actor's underlying buffer, you need to use
clutter_cairo_surface_resize. Setting the size of the actor will just
scale the texture, as you're experiencing at the moment. Of course,
you'll need to redraw the texture too, at the larger size.

Note that it's really not a good idea to redraw cairo surfaces live as
you'll take a pretty big speed hit. A better idea is to either just draw
at the larger size and use mip-mapping (see
clutter_texture_set_filter_quality), or create two textures and
cross-fade between the two as you scale.

Hope I've not misunderstood your question :)

--Chris


-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to