• 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: CALayer renderInContext not rendering all sublayers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer renderInContext not rendering all sublayers


  • Subject: Re: CALayer renderInContext not rendering all sublayers
  • From: David Duncan <email@hidden>
  • Date: Mon, 14 Sep 2009 09:38:21 -0700

On Sep 13, 2009, at 2:10 PM, Christopher J Kemsley wrote:

"CARecorder" is a class I made which spawns a thread and, at a regular interval, tells the given layer's "presentationLayer" to render in a local context, using the following code:

[self.layer.presentationLayer renderInContext:self.context];


-renderInContext: does not implement the full core animation rendering model. I'm not certain what it is not rendering for you, but that would depend on what your layers are rendering themselves.

However, if your goal is to take snapshots of a layer tree, then it is likely that you will have better results with the CARenderer and OpenGL readback techniques, although this method is rather more complex.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: 
 >CALayer renderInContext not rendering all sublayers (From: Christopher J Kemsley <email@hidden>)

  • Prev by Date: Audio Unit problem in Snow Leopard
  • Next by Date: Re: singleton pattern in cocoa
  • Previous by thread: CALayer renderInContext not rendering all sublayers
  • Next by thread: Circular references
  • Index(es):
    • Date
    • Thread