Can't enter game mode under linux with Glut

Hi,
I’m using linux with a GeForce2MX running with the latest nvidia drivers and I’m quite new to openGL/Glut programming ?

My problem is that I can’t enter fullscreen mode at the resolution I’d want to.
Here is my code to initialize my program:

int main (int argc, char *argv[])
{
glutInit (&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE);
glutGameModeString(“640x480:16”);
if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE))
glutEnterGameMode();
else
{
glutCreateWindow(“Blah blaah”) ;
glutFullScreen();
}

The problem is no matter what resolution I request for the gamemode, it never wants to get into it.
Why could be the reason for that ?

[This message has been edited by goldangel (edited 08-10-2002).]

To be a little bit bold: try GLFW instead. It supports “game mode” under Linux (and Windows, and Irix, and…), but it’s called GLFW_FULLSCREEN instead Hopefully you will find that the GLFW documentation explains these things clearly, and there are also example programs for fullscreen mode.

…or checkout all the various glut replacements at the
OpenGL Toolkits FAQ .

Regards,
Jim

[This message has been edited by jmathies (edited 08-31-2002).]