• 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 Troubles [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL Troubles [solved]


  • Subject: Re: OpenGL Troubles [solved]
  • From: Dietrich Epp <email@hidden>
  • Date: Mon, 24 Feb 2003 14:49:54 -0800

On Monday, Feb 24, 2003, at 00:56 US/Pacific, Dietrich Epp wrote:

I am trying to use OpenGL in Cocoa, but can't use NSOpenGLView because my view is sometimes an OpenGL view and sometimes not.

Solved it with multiple pieces of info gleaned from the list archives. The NSOpenGLContext not only needs an actual NSWindow, but it needs an window device - which is created lazily if the window is deferred. Since I considered making the window not deferred too much a shortcut, I created the NSOpenGLContext the first time -lockFocus is called. If hardware acceleration is not supported, it falls back to Quartz.

Just thought this info would be useful to people scanning the lists in the future.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >OpenGL Troubles (From: Dietrich Epp <email@hidden>)

  • Prev by Date: Re: Status of Webkit.framework?
  • Next by Date: Re: Cocoa approachable by non-programmers ?
  • Previous by thread: Re: OpenGL Troubles
  • Next by thread: Re: OpenGL Troubles
  • Index(es):
    • Date
    • Thread