Re: OpenGL Troubles [solved]
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.