Vala powered clutter reflection
Another dirty hack from the vala department.
I've done a generic clutter container class that takes a Clutter.Texture and performs the reflection effect.

YouTube / OGG
If you want to check it out, get the latest vala release (0.1.4 is mandatory to use the latest clutter bindings. so ubuntu universe packages won't work), get the latest clutter release.
And grab the vala bindings for clutter from opened-hand's svn:
$ svn co http://svn.o-hand.com/repos/clutter/trunk/bindings/clutter-vala
You can checkout the tests to have a closer look on how to clutter from vala.
Finally, clone the clutter-reflection git repository:
$ git clone http://people.freedesktop.org/~aruiz/vala/clutter-reflection.git
Enjoy!
segfaults :(
valac --pkg clutter-0.4 clutter-reflection.vala -o clutter_ref
clutter-reflection.c: In function 'clutter_reflection_constructor':
clutter-reflection.c:75: warning: cast from pointer to integer of different size
clutter-reflection.c:75: warning: cast from pointer to integer of different size
clutter-reflection.c:75: warning: cast from pointer to integer of different size
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
error: cc exited with status 256
Posted by: mike | 12/13/2007 at 09:01 PM