Jump to content
  • Advertisement
Sign in to follow this  
csisy

[DX10] Multi-View in one window

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

Hi!

 

I have experience with directx 9, but I hope you can give me some advices.

 

I'd like to create a game-map editor. What is the best way to render to multiple "areas"? I mean I have one window where I put controls (button, listbox, ...) and there are some area where I'd like to render something.

 

Maybe one device with addittional swap chains? It worked in dx9, but I'd like to know the best way.

And in that case what is the best way to determine the RefreshRate (the 60 / 1 (= 60 hz) will work for _everyone_?)

 

Here is a simple picture about what I'd like to do:

 

Thanks,

csisy

Share this post


Link to post
Share on other sites
Advertisement

That depends mostly on your GUI framework that you will be using.  Typically if there is an actual HWND for each of the window sections, then you would create an additional swap chain for that view, and then render into it accordingly.  I have an MFC example in Hieroglyph 3 if you are interested in checking out the implementation.

Share this post


Link to post
Share on other sites

Yap, I have a HWND for each "target". That was what I've done in dx9, and it seems that I have to do it in dx10 :)

Create one or more addittional swap chain and render target (view) and use them. 

 

Thanks!

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!