Checking for OpenGL Extensions using Glew

BlitzMax Forums/BlitzMax Programming/Checking for OpenGL Extensions using Glew

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.

Thanks fredborg!

There does not seem to be a global for glActiveTextureARB , so I think the right way is: (added gl_1.4 to 2.0 )
		glewInit() ' required for glActiveTextureARB

		If (GL_VERSION_1_3 | GL_VERSION_1_3 | GL_VERSION_1_4 | GL_VERSION_1_5 | GL_VERSION_2_0)
			Notify "OpenGL 1.3 or better present"
			multitexturePresent = True
		ElseIf (GL_ARB_multitexture)
			multitexturePresent = True
			Notify "GL_ARB_multitexture OK"
		Else
			Notify "GL_ARB_multitexture MISSING!"		
		EndIf