Re: CALayer with No Animation
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