Getting Rid of Menu Bar

Hi,

I have a program that uses the full screen however, the menu bar doesn’t disappear.

Is there a way to get rid of the menubar using GLUT? I know there is a complicated way to do this under the Mac windowing system, but I’d rather use glut.

I’m on a mac running OS 9.2 with the latest OpenGL SDK installed.

Use the GLUT game mode functions. Just replace your existing call to glutCreateWindow with something like this:

glutGameModeString("640x480:32");
if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE))
{
    glutEnterGameMode();
}
else
{
    glutCreateWindow("Window Title");
}

[This message has been edited by OneSadCookie (edited 03-03-2003).]

The way to make a full screen with Mac Window’s isn’t as tough as you think. In 9.2, you’ll need to include Movies.h or Quicktime.h.
Simply use the function: BeginFullScreen.
Full screen takes a few paremeters.

Simple enough:
Ptr Desktop;
GDHandle mainDevice = GetMainDevice();
RGBColor EraseColor = {0,0,0};
WindowPtr myWindow;
BeginFullScreen(&Desktop,
mainDevice,
1068, //your resolution width
768, //your reso height
&myWindow,
&EraseColor,
fullScreenAllowEvents);

And when you’re done, call:
EndFullScreen(Desktop,nil);

You’ll have to keep Desktop in your app class or global.

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