Various methods to detect opengl?

BlitzMax Forums/BlitzMax OpenGL Programming/Various methods to detect opengl?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok after a discussion on IRC about it with noel, this transpired:

SuperStrict
Framework Pub.OpenGL
Import Brl.StandardIO
Import Brl.GLGraphics
Try
GLGraphics( 320, 240, 0 )
Print String.FromCString(glGetString( GL_RENDERER ))
Print String.FromCString(glGetString( GL_VENDOR ))
Print String.FromCString(glGetString( GL_VERSION ))
Print String.FromCString(glGetString( GL_EXTENSIONS ))
Catch o:Object
Print o.ToString( )
End Try
End


Problem is, we have to open an opengl window, but if that fails there is always try and catch.

What I need to know next is: what strings to look out for? What will happen on 95, 98, Me and windows NT machines?