[clutter] Clutter-cairo 0.1

From: Emmanuele Bassi <ebassi@o-hand.com>
Date: Tue Mar 27 2007 - 09:20:43 EDT

good news, everyone!

today clutter-cairo 0.1 has been released. clutter-cairo is the
cairo[1] integration library for clutter; it allows drawing on a
ClutterTexture directly using the cairo API. the clutter-cairo API
itself is pretty much straightforward:

  ClutterActor *texture;
  cairo_t *cr;

  texture = clutter_cairo_new (width, height);
  cr = clutter_cairo_create (texture);
  
  /* use cr and cairo API to draw, and when done: */
  cairo_destroy (cr);

  /* at this point, use texture like every other clutter texture */

at some point in the future, we'd really like to add this functionality
directly inside clutter core; unfortunately, since cairo pre-multiplies
the alpha channel with all the other channels inside the image surface,
we have to de-multiply the surface data before passing it to the texture
actor. this could be solved by having a way to feed pre-multiplied
sources to GL, a way to get de-multiplied surface data from cairo or by
having the glitz cairo surface. we are still thinkin about how to solve
this in the best possible way.

in the meantime, have fun with clutter-cairo!

ciao,
 Emmanuele.

+++

[1] http://www.cairographics.org

-- 
Emmanuele Bassi, ebassi@o-hand.com
OpenedHand Ltd.

-- 
To unsubscribe send a mail to clutter+unsubscribe@o-hand.com
Received on Tue, 27 Mar 2007 14:20:43 +0100

This archive was generated by hypermail 2.1.8 : Mon Apr 30 2007 - 08:01:16 EDT