« The light at the end of the tunnel. | Main | Waf-ness »

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.

 

Clutter 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!

Comments

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

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment