Fullscreen with AGL
First of all I'd like to thank Mark Szymczyk for the great sample code ... It seems that between OS 9 and OS X, Opengl code can be pretty messed up. This is the first fullscreen example I've seen that supports both (If I remember right Apple's sample code doesn't do fullscreen anymore).
However it seems that the non-DrawSprocket examples are a lot "cleaner" to the user...
they don't flash the screen black and they get rid of the dock and menu bar.
i'd be happy if I knew how to hide the dock at least. How would one go about doing this?
Then I could finally support 9 and X in fullscreen.
However it seems that the non-DrawSprocket examples are a lot "cleaner" to the user...
they don't flash the screen black and they get rid of the dock and menu bar.
i'd be happy if I knew how to hide the dock at least. How would one go about doing this?
Then I could finally support 9 and X in fullscreen.
Quote:Originally posted by Nickolei
i'd be happy if I knew how to hide the dock at least. How would one go about doing this?
Then I could finally support 9 and X in fullscreen.
Have you looked at RezLib before? I've found it to be the ideal way to go fullscreen in a carbon project. Not sure where it can be found online nowadays, though, since http://homepage.mac.com/rezlib doesn't seem to be there anymore (darned .Mac
). If you want to see RezLib in action, my uDevGame entry The Belt uses it to go FS in OS 9 and OS X.Cheers,
Rocco
Virus Out
Big Bang Board Games
Adventures on Pirate Isle
Solace - Strategy, War, and Glory!
The Belt
Quote:Originally posted by Nickolei
First of all I'd like to thank Mark Szymczyk for the great sample code ... It seems that between OS 9 and OS X, Opengl code can be pretty messed up. This is the first fullscreen example I've seen that supports both (If I remember right Apple's sample code doesn't do fullscreen anymore).
However it seems that the non-DrawSprocket examples are a lot "cleaner" to the user...
they don't flash the screen black and they get rid of the dock and menu bar.
i'd be happy if I knew how to hide the dock at least. How would one go about doing this?
Then I could finally support 9 and X in fullscreen.
The reason the dock and menu bar are not hidden is that DrawSprocket is in debug mode. On Mac OS X, debug mode leaves the dock and menu bar visible so you can debug your program. If you want the dock and menu bar hidden, comment out the call to DSpSetDebugMode() in the file DrawContext.cpp.
About RezLib. I noticed that the site was gone so I contacted Ian. The good news is that we gave him space on our server to host http://www.alienorb.com, so you will find it there ONCE he moves his files. (The site is ready for him to move in.) Just another way we at iDG are supporting the community.
Cheers
Cheers
Carlos A. Camacho,
Founder
iDevGames

