Latest way of using OpenGL

BlitzMax Forums/BlitzMax OpenGL Programming/Latest way of using OpenGL

It comes from BRL.GLGraphics. It is just a module which creates/handles an OpenGL context.

Currently, OpenGL 1.1 is used. So I don't know how you would go about doing that.

To use OpenGL in a canvas call,
SetGraphicsDriver GLGraphicsDriver()

at the beginning of your program.

Then when you go to render call,
SetGraphics CanvasGraphics(canvas)

After that, you can use OpenGL like you normally would.