Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

[DX10] Multi-View in one window

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 csisy   Members   

400
Like
0Likes
Like

Posted 06 February 2013 - 12:54 PM

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

Attached Thumbnails

  • multiview.jpg

sorry for my bad english :)

#2 Jason Z   Members   

6430
Like
1Likes
Like

Posted 06 February 2013 - 09:13 PM

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.



#3 csisy   Members   

400
Like
0Likes
Like

Posted 07 February 2013 - 09:24 AM

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 :)




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.