Skip to main content
GameDev.net gamedev.net
🔒 Locked

beginner question

Started by Okasion Jan 5, 2003 at 6:06 PM 1 replies 500+ views
Original Post
Okasion
Okasion
i use glutFullScreen ( ); to fullscreen, how can i set the resolution using this? thanks anyway
zedzeek
zedzeek
u need glut3.7
in there theres a function that lets u change the resolution glutgamemode(..) i think

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
aleks_1661
aleks_1661
here is an example of game glut. the mode string is the screen resolution and colour depth. have fun!

  
glutInit( &argc, argv );

glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH );

glutGameModeString(800x600:32);

// enter full screen

if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE))
{
glutEnterGameMode();
}
else
{
exit(1);
}

if ( !init() )
{
return 0;
}

glutDisplayFunc( display );

glutReshapeFunc( reshape );

glutKeyboardFunc( keyboard );

glutIdleFunc( idle );

glutMainLoop();

return 1;
}

"Very funny, Scotty. Now beam down my clothes."


[edited by - aleks_1661 on January 6, 2003 7:32:24 PM]
Twitter: [twitter]CaffinePwrdAl[/twitter] Website: (Closed for maintainance and god knows what else)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.