• Advertisement
Sign in to follow this  

Display modes through glut

This topic is 2893 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

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
Advertisement
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
i know, but i thought using glut would make it more platform indepebdent than resorting to wgl. it's doable, i just need to fix the console thing.

Share this post


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

  • Advertisement