• 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: opengl rendering outside of -drawRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opengl rendering outside of -drawRect:


  • Subject: Re: opengl rendering outside of -drawRect:
  • From: Richard Charles <email@hidden>
  • Date: Sat, 18 Jun 2016 11:14:14 -0600

> On Jun 18, 2016, at 11:04 AM, Richard Charles <email@hidden> wrote:
>
> So I think the takeaway is that draw calls operate within a graphic context. If the context you want and need is the current context then you are good to go.

Just to reiterate, if the context you want to draw to is not active you can simply do this.

[context makeCurrentContext];

So yes, you do not need to call lockFocus, but the context you want must be the current context which is what lockFocus does.

--Richard Charles


_______________________________________________

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


References: 
 >Re: opengl rendering outside of -drawRect: (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: opengl rendering outside of -drawRect:
  • Next by Date: CloudKit queries for records with CKAssets - one or many?
  • Previous by thread: Re: opengl rendering outside of -drawRect:
  • Next by thread: TableView crash with Delegate
  • Index(es):
    • Date
    • Thread