Jump to content



how to set hd resolution in Glut?

  • You cannot reply to this topic
No replies to this topic

#1 nickme   Members   -  Reputation: 106

Like
0Likes
Like

Posted 04 February 2012 - 12:37 AM

hi
is there a way to set the highest resolution like the SDL function in Glut or freeglut?

in SDL, there is a funciton that allows one to define the resolution of the screen as the following statement shown:

screen = SDL_SetVedop_mode(sreenwidth, screenheight, 32, SDL_SWSURFACE);

the 32 bits is to set the bit of higher resolution.

what happened was that when i open a window with glutInitWindowSize(600, 600), the window covers almost all the vertical space of my 1920x1080 pixels screen. for 600x600 window, it should covers only 1/3 of the vertical length. because of the low resolution, the graphics that generated was not as fine as i wanted. any idea? i tried to query the glut and found the resolution to be 1080x720. please help.

thanks

Ad:





We are working on generating results for this topic
PARTNERS