Game mode need help

Hi I have seen multiple instances of the game mode on various sites but they weren’t much help. Does anybody know of a good site that has a tutorial on the game mode in openGL or could someone post an example with the syntax? :confused:

Ok sry I found a site but when I enter the gamemode I get a quick glance at my game then it gives me an error saying “redisplay needed for window 1, but no display callback”

here is my code where I enter the game mode. can someone help?

glutInit(&argc, argv);
glutInitWindowSize(550, 500);
glutInitWindowPosition(50, 30);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH|GLUT_RGB);
glutCreateWindow("John's ping pong");
glutGameModeString( "1024x768:16@60" );
glutEnterGameMode();
init();
glutDisplayFunc(finished);
glutMouseFunc(mouse);
glutKeyboardFunc(keys);
glutKeyboardUpFunc(ukeys);
glutSpecialFunc(skeys);
glutSpecialUpFunc(sukeys);
glutIdleFunc(moving);
glutMainLoop();

glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH|GLUT_RGB);
glutGameModeString( “1024x768:16@60” );
glutEnterGameMode();
init();
glutDisplayFunc(finished);
glutMouseFunc(mouse);
glutKeyboardFunc(keys);
glutKeyboardUpFunc(ukeys);
glutSpecialFunc(skeys);
glutSpecialUpFunc(sukeys);
glutIdleFunc(moving);
glutMainLoop();

Great! thanks. :slight_smile: