This is maybe not an advanced OpenGL question. So, please don’t take offense.
I am attempting to create a platform detection algorithm so I can turn OpenGL freatures on/off as they are availible.
Does anybody know of a good platform detection algorithm? I found a really cool utility called GLView (not the 3d image viewer, but a OpenGL capabilities detector). I would like to be able to obtain much of the same information that this program does.
I tried using glGetString(enum) where enum is GL_VERSION, GL_EXTENSIONS, GL_VENDOR, or GL_RENDERER, and I always receive a pointer to NULL. I’m using Microsoft Visual Studio (C++). When I do the same in VB6 I get large numbers like 1766921316, for instance, for the renderer. Anybody know what’s up?
I am really new to platform detection. So, I would really appreciate any insight you could offer.