MaxGUI: How to select other buffers for canvas?

BlitzMax Forums/BlitzMax Programming/MaxGUI: How to select other buffers for canvas?

ImaginaryHuman(Posted 2006) [#1]
I was going to ask how to do this, then I figure out how to do it. You just set the buffers you want as the default buffers when selecting the driver to use.

This lets you open a MaxGUI canvas and give it the buffers you want to use in OpenGL. I presume this works for DirectX driver too.

Example...



neilo(Posted 2006) [#2]
Watch out if you're:
1) Using Direct X; and
2) Using multiple canvases in MaxGUI.

If you close a canvas under these conditions, for some reason the DX7 context is lost, and subsequent operations on the other canvas results in a crash.

No problem under OpenGL, though.

My multimedia authoring software uses OpenGL for the unser interface, and switches to DirectX for the full-screen runs.

As far as I can tell, you only need to FreeGadget the window. This will automatically free all the child gadgets.

Neil