Greetings, I am currently experimenting with clutter for providing a makeover to some of the components in gtkpod. In order to get some experience with the toolkit, I am implementing a coverflow plugin called 'clarity'.
Clarity contains the following: 1. clarity-widget - gtk slider, buttons and clarity-canvas 2. clarity-canvas - gtk box containing a gtk_clutter_embed, containing a clutter-group, containing clarity-covers 3. clarity-cover - gtk-clutter-texture from a pixbuf and its reflection My experimenting was going well until I implemented the reflection. Using the cookbook example [1], I attached the paint callback to the reflection actor. Everything works ok except the first time of rendering. My screenshot [2] shows, on the left, the reflection when first loaded onto the screen, while on the right it shows the reflection when I have resized the gtk widget. As can be seen, all is fine on resize but initially the cogl source material appears zoomed in by a factor. I have tried changing the setting the size of the containers, textures and the pixbuf but all seem correct so I am a little lost. Attached are the source files listed above. Happy to provide more information as necessary. Any help would be must appreciated. Cheers phantomjinx [1] http://docs.clutter-project.org/docs/clutter-cookbook/1.0/textures-reflection.html [2] http://phantomjinx.co.uk/stuff/clutter-problem.png -- "I know exactly who reads the papers ... The Daily Mirror is read by people who think they run the country. The Guardian is read by people who think they ought to run the country. The Times is read by people who do actually run the country. The Daily Mail is read by the wives of the people who run the country. The Financial Times is read by the people who own the country. The Morning Star is read by the people who think the country ought to be run by another country. The Daily Telegraph is read by the people who think it is." Jim Hacker, Yes Minister
clarity-experiment.tar.gz
Description: GNU Zip compressed data
_______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
