• 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 with No Animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer with No Animation


  • Subject: Re: CALayer with No Animation
  • From: Richard Somers <email@hidden>
  • Date: Mon, 18 Jan 2010 14:47:41 -0700

On Jan 18, 2010, at 1:10 PM, David Duncan wrote:

I'm not certain what you mean by this. All layers participate in implicit animations, although each layer type can specify which keys are implicitly animated (and this can be further customized by developers). If you are saying that CAOpenGLLayer has a different set of default implicit animations, thats entirely possible, but they both should use the same mechanism.

I have been implementing my CAOpenGLLayer subclass using the standard draw method.


- (void)drawInCGLContext:(CGLContextObj)context
              pixelFormat:(CGLPixelFormatObj)format
             forLayerTime:(CFTimeInterval)interval
              displayTime:(const CVTimeStamp *)timeStamp
{
     // Do some OpenGL drawing ...
}

When I do this the OpenGL layer has no animations what so ever. So in- other-words when I simply draw, using the standard draw method, there are no animations.

To get the same effect with CALayer I need to override -actionForKey:.

Thats what I meant by CALayer having automatic animation and CAOpenGLLayer having manual animation.

--Richard

_______________________________________________

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


  • Follow-Ups:
    • Re: CALayer with No Animation
      • From: David Duncan <email@hidden>
References: 
 >CALayer with No Animation (From: Richard Somers <email@hidden>)
 >Re: CALayer with No Animation (From: David Duncan <email@hidden>)
 >Re: CALayer with No Animation (From: Richard Somers <email@hidden>)
 >Re: CALayer with No Animation (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Keeping closed windows in the Window menu
  • Next by Date: Re: Blocking for input during a loop?
  • Previous by thread: Re: CALayer with No Animation
  • Next by thread: Re: CALayer with No Animation
  • Index(es):
    • Date
    • Thread