Re: how to clip inside a path
Re: how to clip inside a path
- Subject: Re: how to clip inside a path
- From: Vincent Habchi <email@hidden>
- Date: Mon, 29 Oct 2012 16:37:24 +0100
Roland,
> Someone suggested a clip mask, that might work if I can't get the paths to go; I feel for some reason that a clip mask would be less efficient and this should be totally do-able with paths and paths are what I naturally have here.
I am not sure if would be less efficient. If I figure out the way CALayer works correctly, at the OpenGL level, your path has to be rasterized, filled then put into some kind of auxiliary buffer (stencil); Afterwards the OpenGL fragment processor clips the rendering according to the values of the corresponding pixel in the stencil buffer. If you pass a clip mask, that goes directly into the auxiliary buffer.
Is there any pundit out here to confirm this?
Vincent
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden