What version of OpenGL is supported?

BlitzMax Forums/OpenGL Module/What version of OpenGL is supported?

Ryan Burnside(Posted 2008) [#1]
I'm just wondering what version of OpenGL is supported by Blitzmax. Do I have access to shaders and such? What is lacking if anything in the Blitzmax supported version of OpenGL.


plash(Posted 2008) [#2]
OpenGL 1.1 I think.

I believe you can get shaders in blitzmax, see minib3d (it [currently] only uses opengl, and klepto's version can do shaders).


nawi(Posted 2008) [#3]
You can enable access to shaders and other stuff by using GlewInit(), and then use for example GLSL. You can search the forum for more information. I found this code in MiniB3D which tells the version, and for me I get GL 2.0 after glewInit.

If GL_VERSION_1_1
	If GL_VERSION_1_2
		If GL_VERSION_1_3
			If GL_VERSION_1_4
				If GL_VERSION_1_5
					If GL_VERSION_2_0
						Print "GL 2.0"
					Else
						Print "GL 1.5"
					EndIf
				Else
					Print "GL 1.4"
				EndIf
			Else
				Print "GL 1.3"
			EndIf
		Else
			Print "GL 1.2"
		EndIf
	Else
		Print "GL 1.1"
	EndIf
Else
	Print "GL ?.?"
EndIf



JoshK(Posted 2008) [#4]
pub.glew needs to be updated. It is missing a lot of SM 4.0 stuff.


Dreamora(Posted 2008) [#5]
With the given low market share of SM4 this shouldn't be a problem.

To use SM4 (including geometry shader) you need to have an NVIDIA and use cg 2.0 anyway until OpenGL 3 is out.


ImaginaryHuman(Posted 2008) [#6]
I'm fairly sure I saw in the BlitzMax documentation recently that OpenGL is version 1.1, as stated above.

It depends what your system supports in the driver etc as to what version you'll get after GlewInit. Most macs will have OpenGL 2.0 at least without any extra drivers having to be installed, but probably less reliable on Windows.


JoshK(Posted 2008) [#7]
With the given low market share of SM4 this shouldn't be a problem.

Shut the <censored> up, I am getting really sick of you.

Edited by Moderator


SebHoll(Posted 2008) [#8]
>With the given low market share of SM4 this shouldn't be a problem.

Shut the <censored> up, I am getting really sick of you.


Leadwerks, that kind of language is not tolerated on these forums however much you dislike Dreamora. Be warned!