On 05/07/2010 13:01, Emmanuele Bassi wrote:
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.

I'm trying to clarify the question and fit it to the situation I am in.

Given:
Group G, sub-group H and CairoTexture C
stage-> G-> H-> C (i.e. C is in H is in G.)
Group G is scaled and rotated and has a depth.

Approach 1

How would you:
1. Pull* C out of H
   *reparent to stage, or hide C and make a duplicate on stage?
2. Replicate the effects of the matrices such that C overlays its
original in every respect, but is now a different surface size
(larger or smaller)?
3. Return C to H such that it resumes all its previous attributes,
including its old surface size.

The same should be possible for an actor C that is any number of
groups deep within other groups.

I am still hacking, but it's not gelling yet.

Approach 2

You did not mention anything about new surfaces (that feed the CairoTexture actor) and how they could be resized. I have to assume that was because they are locked together, or it's just not how open GL works, or something like that. I am not at that level. However, I must ask if there is some way? What are cogl materials, for example? Is there some route by which I could 're-skin' the CairoTexture without having to worry about all the matrices and stuff?

I asked on StackOverflow (http://stackoverflow.com/questions/3176011/zooming-into-a-clutter-cairotexture-while-re-drawing) in case you want to read my description there.

I can post some test-code related to that post, but it will take some time to make it stand-alone. The frustrating thing is that it so nearly works, but close is not good enough.

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

Reply via email to