2d opengl?

BlitzMax Forums/BlitzMax Beginners Area/2d opengl?

Type this at the top of your program:
SetGraphicsDriver GLMax2DDriver()

That should do it. BlitzMax defaults to DirectX, but that
line changes it to OpenGl. Program like normal after that.
I wouldn't worry about the more advanced OpenGL usage
just yet. Just keep practicing making programs for now.

Why? Because this:
	If TextureImage <> Null											
		glGenTextures(1, Varptr texture)					
		glBindTexture(GL_TEXTURE_2D, texture)
		glTexImage2D(GL_TEXTURE_2D, 0, 3, TextureImage.width, TextureImage.height, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage.pixels)
		glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR)
		glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR)
	EndIf
is what OpenGL looks like. I'm sure you wouldn't want to touch that just yet.