Hi,
I looked through the doc to see if it was available, but it’s not (correct me I’m wrong). It’d be nice to have some clipping functions, like a mask in flash.
Basically something like this :
[code]local clip_rect = display.newClipRect(50, 50, 100, 100);
local circle = display.newCircle(60, 60, 80);
circle:setClip(clip_rect);
[/code]
A polygon shape could be *very* helpful in this case. I don’t know how hard it’d be to add this feature into Corona, especially using OpenGL. There’s glScissor but it’s only for static rectangle (can’t be rotated from what I know).
Tom [import]uid: 4566 topic_id: 429 reply_id: 300429[/import]
