Hi all,
I've been trying to make a class to record CALayers and their
animations to QuickTime movies.
I've only found two ways to do this:
Poll and renderInContext
I can have a timer running at some rate, and I use that to tell the
layer's presentationLayer renderInContext:(someBitmapContext). This
does not work with CAShapeLayer or any other OpenGL layer.
Use CARenderer
This should work for what I need, but I don't know anything about
OpenGL and need to have this recorder object by... tomorrow...
Does anyone know of - or could anyone create - a very simple example
of efficiently doing the following:?
• Creating an OpenGL offscreen context;
• Create the CARenderer, setup for the context;
(loop, or something:)
• Drawing animations to the context, while
• Capturing context as a bitmap, and
• Writing image to quicktime file; then,
• Clean up
I've been searching for this for about four days now and have turned
up very little. All of Apple's docs [that I've found] on OpenGL assume
that I am already an experienced OpenGL programmer, which I am not. I
really don't care about OpenGL right now, I just need to record this
layer.
I would greatly appreciate any help anyone could
provide!_______________________________________________
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]