[DX10] Multi-View in one window

Started by
1 comment, last by csisy 11 years, 2 months ago

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

sorry for my bad english
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.

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!

sorry for my bad english

This topic is closed to new replies.

Advertisement