I have this in my main():
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_ACCUM | GLUT_DEPTH);
glutInitWindowSize(500, 500);
glutInitWindowPosition(100, 100);
glutCreateWindow(“EcoSim”);
glutGameModeString("");
// enter full screen
if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE))
glutEnterGameMode();
else {
cout << "The select mode is not available." << endl;
exit(1);
}
As you can see, there is a difference in the way the window is initialized.
By the way, as I remeber game mode was introduced on glut 3.7, you may also check you glut version.
Note:
I ran this code on 2 computers running windows 2000, with differents video cards, one of them displayed a error when I double click on the exe, however if I used a .bat to run the program it worked.
Regards.
Jack
[This message has been edited by vongart (edited 02-11-2004).]