On Sat, 2010-07-03 at 15:45 +0200, donn wrote:

> How do I make the *surface* of CT larger so that draw_stuff() now
> works on 96 by 96 ... BUT not so that the Actor gets visibly larger?

you can get the perspective transformation matrix and recompute the size
of the Cairo surface at the final depth level. the
Stage.get_perspective() will give you the fovy and aspect values, then
you can use the Stage size to compute the factor to which you want to
scale the surface size to match the desired size at the given depth.

if you're animating the depth change, you obviously don't want to do
this for every frame, but do it only at the end of the animation.\

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Open Source Software Engineer
Intel Open Source Technology Center

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to