Sign in to follow this  
SuperVGA

Display modes through glut

Recommended Posts

Hey guys! I want to enumerate all possible display modes for any monitor on any platform with glut, and I thought setting the game mode string several times (widths*heights*depths*freqs), whereafter asking whether if any of these game modes are possible would fill up a nice list of modes. This is (probably) true. But, I like my console while developing, and I don't want glut to fill it up with early descisions on whether the game mode string would work or not. I have GLUT_GAME_MODE_POSSIBLE for that. Nevertheless, Glut keeps rambling several million lines to the console before I would get my list, and I cannot wait that long. -Is there any way I can avoid glutGameModeString writing to my console without disabling my console entirely? If not, is there any (other) platform-independent way to enumerate working display modes? Thanks in advance!

Share this post


Link to post
Share on other sites
Well, i guess i could just make a graphical console and use that instead. -or wait that one hour for every machine to store the possible modes locally.

Really, somebody must have dealt with this before?
How did valve enumerate the video modes for half-life 1 in opengl mode?

Share this post


Link to post
Share on other sites
Quote:
Original post by SuperVGA
Really, somebody must have dealt with this before?
How did valve enumerate the video modes for half-life 1 in opengl mode?


HL1 didn't use GLUT, they probably used WGL directly.

GLUT is pretty limited, isn't mean to do that, is just for rapid prototyping and examples.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this