Re: Best way to draw text in CAOpenGLLayer
Re: Best way to draw text in CAOpenGLLayer
- Subject: Re: Best way to draw text in CAOpenGLLayer
- From: David Duncan <email@hidden>
- Date: Fri, 22 May 2009 10:46:03 -0700
On May 21, 2009, at 11:25 PM, Anshul jain wrote:
Hi
thanks for suggestion. Since i want to scroll the text so i have to
update it regularly so i have taken a CAOPenGLLayer and set is
asynchronous and i am using
Is this the right approach to do it.
In Core Animation if you want to scroll something, then you move its
layer. There is no need to continuously update the content of the
layer, which is what you are proposing with the CAOpenGLLayer
solution. Additionally, your basically just using a GL layer to draw a
bitmap that is continuously updating without any other reason to use
GL, its a waste of resources.
I would highly recommend that you read the Core Animation Programming
Guide before you continue much further, as it may give you some bigger
insights into what is available and how you might use it. You can find
it here: <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html
>
--
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