Jump to content
  • Advertisement
Sign in to follow this  
nickme

how to set hd resolution in Glut?

This topic is 2508 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!