Fullscreen mode OS X?

how do i switch to fullscreen mode under MacOS X?
thanks in advance

winter

I would try using QuickTime or DrawSprocket to switch to fullscreen.

In Carbon, just use the AGL function aglSetFullscreen(). In Cocoa, try the NSOpenGLContext class.

What about GLUT full screen for cross-platform projects? Is that supported on OS X? I’ve always had problems getting that to work…

On OS X developer CD, look under GLUTExamples (installed in /Developer/Examples/GLUTExamples), specifically the gameGlut example (which is an Asteroids knock-off in 2D). It shows you can use glutEnterGameMode to get into full-screen mode. Here’s some code I use:

#ifdef KELCH_FULL_SCREEN
	glutGameModeString( "640x480:16@60" );
	glutEnterGameMode();
#else
	originalWindow = glutCreateWindow( "Kelch" );
#endif

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.