Sign in to follow this  
csisy

[DX10] Multi-View in one window

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

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

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