I’d like to render frame on D3D9 using two screens in fullscreen mode.
For example :
I have two screens resolution 1024x768.
So I’d like to render frame in 2048 x 768 same time on two screens.
How must I program based on D3D9?
AFAIK, the only way to render to two screens with Dx9 is to create two separate, fullscreen devices. You would have to duplicate all resources on both devices. When rendering, you draw with each device, with the view matrices adjusted so that each monitor is drawing half of the full view.
You could use Dx in non-fullscreen exlusive mode, where you just have one large window with no borders that covers the entire screen (e.g. WoW and Eve have this as an option). Then you would only need one device.