Spellcaster Studios

Make it happen…

OpenGL device enumeration

“How do I get the available resolutions in OpenGL?”

This seems like a simple question, but it’s not!

While on Direct3D, this is part of the API, it seems that it goes in fact straight to the Win32 API and retrieve that… So, OpenGL would have to do the same, and that obviously enough can’t be platform independent, so I’d have to do different code for Linux and Mac.

Fortunately, after a lot of searching Google for this, I found the GLFW, which abstracts this kind of queries and window creation (which should save me some work)… The end result:

screen644

I know, impressive… Smile

Tomorrow I’ll start replacing the Win32-specific code (for windows management) with GLFW, that should really ease the porting process afterwards!

Now listening to “Cereal Killer Soundtrack” by “Green Jëllo”

Link of the Day: I’d be very excited with this game, if it was single-player… Currently, I’ll say I’m intrigued:

Comment