More OpenGL with MAX2D

BlitzMax Forums/BlitzMax OpenGL Programming/More OpenGL with MAX2D

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.

The answer is, you can't - you have to use bglCreateContext. Unfortunately this also means that you can't use some of the Max features mechanism.

Actually, what you could do (and this would be an almighty hacky way of doing things) is something like:
Graphics width, height, depth, hertz
' Grab the actual width, height, depth and screen hertz Graphics has generated
bglDeleteContext
bglCreateContext width, height, depth, hertz, flags
' Set the viewport etc.

That way you might be able to hang on to Max2D while being able to use the depth buffer. But as I said, it's one hell of a hack if it even works.