Fullscreen with AGL

Member
Posts: 33
Joined: 2002.04
Post: #1
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.
Quote this message in a reply
Member
Posts: 204
Joined: 2002.09
Post: #2
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 Wink ). 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
Quote this message in a reply
Member
Posts: 111
Joined: 2002.06
Post: #3
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.

Mark Szymczyk
http://www.meandmark.com
Quote this message in a reply
Founder
Posts: 1,139
Joined: 2002.04
Post: #4
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. Grin

Cheers

Carlos A. Camacho,
Founder
iDevGames
Quote this message in a reply
Post Reply