Double-Buffering with NSOpenGLView

DesertPenguin
Unregistered
 
Post: #1
While googling I have noticed several comments indicating that the NSOpenGLView does not support double-buffering and that initWithFrame is not called.

After reviewing and debugging some of Apples samples though, it appears that subclasses of NSOpenGLView do support buffering and intiWithFrame.

I am starting a new cocoa-based opengl app, and wanted to verify this before going down the wrong path.

I also found OneSadCookie's GameShell. I was planning to look deeper into it. Has anybody used for any of their projects?

Thanks for any feedback.....
Blink
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
http://tips.onesadcookie.net/tips/publis...ce+Builder

Yes, I've used my GameShell Wink

Outnumbered, here, uses it: http://onesadcookie.com/Software/
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #3
Quote this message in a reply
DesertPenguin
Unregistered
 
Post: #4
Thanks for the quick replies - GameShell looks like it has what I want from a starting point. <Potential future questions on this ;-) >

For the record, it looks like the Apple sample NSOpenGL Fullscreen -at http://developer.apple.com/samplecode/NS...index.html, still uses a subclass of NSOpenGLView.

But on the Nib they use a CustomView - not OpenGLView - and point it's custom class attribute to their new subclass of NSOpenGLView. Thus, they still use initWithFrame and can set the pixel format programmatically for double-buffering. They also get the built-in NSOpenGLView functionality(albeit which doesn't look like much - just a pre-wired GLContext attribute anyway).
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Nothing showing up in NSOpenGLView [newb] binaryinsomnia 6 6,307 Nov 29, 2011 07:04 PM
Last Post: binaryinsomnia
  iPhone/iPad Audio Glitch - Double Hiss/Static reapz 2 4,993 Dec 8, 2010 06:22 PM
Last Post: reapz
  Cocoa controls on top of NSOpenGLView wadesworld 5 5,807 Apr 6, 2009 01:38 AM
Last Post: arekkusu
  Antialiasing and NSOpenGLView attributes Jar445 2 6,468 Jan 20, 2009 10:42 AM
Last Post: maximile
  Adding NSOpenGLView class in Xcode/Interface Builder 3.0 Graphic Ace 2 3,668 Dec 5, 2007 02:15 PM
Last Post: Blacktiger