SetGraphicsDriver() during runtime?

BlitzMax Forums/MaxGUI Module/SetGraphicsDriver() during runtime?

Grisu(Posted 2006) [#1]
Hi all!

Simple Question. Can I switch between:

"SetGraphicsDriver D3D7Max2DDriver()"

and

"SetGraphicsDriver GLMax2DDriver()"

during runtime in my GUI app?

That means: Will the driver be changed instantly or do I have to restart the app for that?!? (Windows OS)

It doesn't seem to work without a restart...


Grisu


LarsG(Posted 2006) [#2]
I would guess you'd have to setup your graphics etc. again, after a change of graphics driver...


Grisu(Posted 2006) [#3]
What do you mean by setup your gfx? Do I have to destroy my MainWindow Gadget and recreate it anew?

I have already tried hiding and reshowing the window after calling setgraphicsdriver. But this has no effect also.


Yan(Posted 2006) [#4]
This seems to work...




Grisu(Posted 2006) [#5]
Some posts have been deleted here, stange?!? :(

Anyway, there are about 8 different canvas in my app and recreating them all in realtime looks ugly.

Was worth a try. I think the user will have to live with a app restart by hand.

Thanks for all the replies!


Yan(Posted 2006) [#6]
As a user, I'd prefer an app to have a glitchy real time change (I wouldn't expect it to be smooth, in fact) to one that made me restart.

It's obviously your choice though. ;o)