Jump to content
  • Advertisement
Sign in to follow this  
peter_b

Several HWND's = several IDirect3DDevice9?

This topic is 4709 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to render in 4 diffrent hwnd's in my level editor. But i cant find a way in d3d to do this with the same device. So i guess i have to create one device per hwnd? That raises the question, do i need to load textures, vertexbuffers etc 4 times? Or can diffrent devices share such resources? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Look at the IDirect3DDevice9::Present() method. You can assign a HWND for use in the drawing by setting the hDestWindowOverride to something other than 0.

When you use it, you'll find that the other parameters of the Present method come in handy also - you can control the source and destination rectangles independently.

EDIT: Oh yea, the additional swap chains are also good for this type of things.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!