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, [EMAIL PROTECTED] OpenedHand Ltd.
signature.asc
Description: This is a digitally signed message part
