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!

Advertisements

One thought on “Vala powered clutter reflection

  1. 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

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s