Crazy question,
Is it possible to use the alpha of a texture to create a non-rectangular
clip? Perhaps not at the moment, but some kind of "clip-with-alpha"
property perhaps?

For example:
A CairoTexture: draws stuff by cairo/rsvg

In a clutter.Group:
def do_paint(self):
 cogl.clip_push_from_texture( that_cairo_texture )
 clutter.Group.do_paint(self)# go paint my children
 cogl.clip_pop()

Or in the init:
class myGroup(clutter.Group):
 def __init__(self, ...):
  self.set_property("clip-with-alpha", that_cairo_texture)
  ## can skip the do_paint now.

Just wondering aloud.
\d
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to