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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to