Thomas Steinacher wrote: > Hello, > > The following code displays a blank stage (i.e. the image is not > rendered at all). Why is this so? I'd expect a 50x50 rectangle to be > visible. > > > import clutter > from clutter import cogl > > class Texture(clutter.Texture): > __gtype_name__ = 'Texture' > > def do_paint(self): > cogl.push_matrix() > cogl.clip_set(0, 0, 50, 50)
If I am not mistaken cogl_clip_set() takes ClutterFixed/ClutterUnit, not int, so you are really setting the clip to 0 x 0. Tomas -- To unsubscribe send a mail to [email protected]
