SetGraphicsDriver() during runtime?
BlitzMax Forums/MaxGUI Module/SetGraphicsDriver() during runtime?
| ||
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 |
| ||
I would guess you'd have to setup your graphics etc. again, after a change of graphics driver... |
| ||
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. |
| ||
This seems to work... |
| ||
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! |
| ||
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) |