• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to clip inside a path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >how to clip inside a path (From: Roland King <email@hidden>)
 >Re: how to clip inside a path (From: Kyle Sluder <email@hidden>)
 >Re: how to clip inside a path (From: Roland King <email@hidden>)
 >Re: how to clip inside a path (From: Vincent Habchi <email@hidden>)
 >Re: how to clip inside a path (From: Roland King <email@hidden>)

  • Prev by Date: Re: how to clip inside a path
  • Next by Date: Re: build compatibility for iOS
  • Previous by thread: Re: how to clip inside a path
  • Next by thread: Re: how to clip inside a path
  • Index(es):
    • Date
    • Thread