pmatos
02-02-2004, 10:38 AM
Hi all,
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);
}
glutReshapeFunc(reshape);
glutDisplayFunc(display);
glutKeyboardFunc(keyboard);
glutKeyboardUpFunc(keyboardUp);
glutSpecialFunc(keyboardSpecial);
glutSpecialUpFunc(keyboardSpecialUp);
glutIgnoreKeyRepeat(1);
//This is just to call the game constructor for the 1st time.
game *state = game::Instance();
glutMainLoop();
return 0;
However, I always get:
The select mode is not available.
I've tried 1024x768, 1400x1050, 800x600... almost everything and nothing works. Why? Any ideas?
best regards,
Paulo Matos
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);
}
glutReshapeFunc(reshape);
glutDisplayFunc(display);
glutKeyboardFunc(keyboard);
glutKeyboardUpFunc(keyboardUp);
glutSpecialFunc(keyboardSpecial);
glutSpecialUpFunc(keyboardSpecialUp);
glutIgnoreKeyRepeat(1);
//This is just to call the game constructor for the 1st time.
game *state = game::Instance();
glutMainLoop();
return 0;
However, I always get:
The select mode is not available.
I've tried 1024x768, 1400x1050, 800x600... almost everything and nothing works. Why? Any ideas?
best regards,
Paulo Matos