OpenGL CGL Switch Between Fullscreen and Windowed Mode
I need help setting up my Cocoa app to be able to run in fullscreen and windowed mode (and switch 'on-the-fly' between the two) using CGL and OpenGL. I can make either work independantly but am having trouble switching from one to the other - does anyone know of a really good tutorial on how to do this? What pixel formats are you guys using for your fullscreen and windowed contexts? What code to setup / tear-down keeping in mind that we may switch betewwn modes (or even resolutions)? It's for a Cocoa-only 3D Arkanoid style game that I have been working on and adding this seemingly simple functionality has been quite trying, any help would be appreciated. Thanks in advance and keep up the great site!
eze
eze
there was a recent thread about this on the mac-opengl mailing list...
anyway, code here: http://onesadcookie.is-a-geek.net/svn/repos/GameShell/
anyway, code here: http://onesadcookie.is-a-geek.net/svn/repos/GameShell/
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Mac OS X. Switching between fullscreen and windowed mode. | e40pud | 2 | 3,491 |
Jan 25, 2010 12:01 PM Last Post: OneSadCookie |
|
| SDL/OpenGL fullscreen text rendering | StealthyCoin | 2 | 5,362 |
Mar 26, 2009 09:47 AM Last Post: StealthyCoin |
|
| OpenGL full screen mode leaves garbage on screen when exiting app | Malarkey | 5 | 4,454 |
Nov 19, 2008 12:51 PM Last Post: Malarkey |
|
| Fullscreen/resolution switch causes texture loss | IBethune | 4 | 3,531 |
Feb 21, 2008 01:37 PM Last Post: OneSadCookie |
|
| Problems trying to fade in windowed mode | Wowbagger | 4 | 3,264 |
Aug 13, 2007 12:11 PM Last Post: Wowbagger |
|

