[D3D9] Switch monitor/fsaa without restarting application

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
Tiffer
Kobold
Posts: 36
Joined: Thu Oct 04, 2012 12:00 pm
x 6

[D3D9] Switch monitor/fsaa without restarting application

Post by Tiffer »

I know that switching monitor in fullscreen mode without reinitializing the rendersystem has to be possible, because you can do it indirectly by switching to windowed, dragging the window to the other monitor and then switching to fullscreen again, but Ogre doesn't expose a method to do this directly, at least that I've found.

Can we discuss how to do this?

PS: Here's how to make Ogre change FSAA on the fly on D3D, btw.

Just add this method to Ogre::D3D9RenderWindow:

Code: Select all

		void setFSAA(unsigned int fsaa){
			mFSAA = fsaa;
			mDevice->invalidate(this);
		}
Then one can just cast to D3D9RenderWindow* and no need to touch the generic interface. Maybe this cannot be done in opengl but IMHO we shouldn't cripple render systems just because other render systems cannot have some features.
Post Reply