Sign in to follow this  

Several HWND's = several IDirect3DDevice9?

This topic is 4489 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
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

This topic is 4489 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this