Skip to main content
GameDev.net gamedev.net
🔒 Locked

Multiple viewports using Windows Forms

Started by ZeroEffect Nov 21, 2004 at 9:22 PM 0 replies 1.3k views
Original Post
ZeroEffect
ZeroEffect
Currently I'm trying to find the best way to setup multiple DirectX viewports in a Window Form (Visual C++ .NET). I would also like to have the option to switch between a single viewport and multiple viewports. The first problem I am attempting to solve is how to have multiple viewports that can be sized (using the Splitter control or other control) without needing multiple D3D9 Devices. I would like to be able to us a simlar procedure to using one device and setting the D3DVIEWPORT9 structure for each view (as in a non-Forms app). Secondly, what would be the best approch to toggling between one and multiple viewports (especially if I am using Forms controls to split the viewports)? I can simply toggle the visibility for each panel (one being multi the other being single), but I am wondering if there is a better way. Although I have had some limited experience with Forms, this is my first attempt to incorperate Direct3D. Any ideas are appreciated. Chris Z.
Chris Z. GPU FX

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.