Archived

This topic is now archived and is closed to further replies.

elis-cool

Seperate rendering windows...

Recommended Posts

Ok, so im designing my level editor, and I want to have the main window with the terrain etc... and I want to have a toolwindow over top from witch you can select objects (models) and their displayed in the window next to the list (not the main window, the one on the tool/dialog window) and I know about using veiwports to restrict its location on the window, but how do I render to the two diff windows?

Share this post


Link to post
Share on other sites
You have to activate the current viewport with pD3DDevice->SetViewport() and then just render...

Gero

[edited by - gerogerber on October 21, 2002 6:28:48 AM]

Share this post


Link to post
Share on other sites
If you''re after truly different _windows_, then you need to use additional Swap Chains.

Look at the "Multiple Views in Windowed Mode" topic in the D3D docs for more info.

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites