Jump to content
  • Advertisement
Sign in to follow this  
jianghongbo

About D3d8&SplitterWnd

This topic is 5044 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 want to render a 3d scene in the pane of a splitter window(MFC&SDI Application). I want to know, what I must to do(fill in D3DPRESENT_PARAMETERS, create d3d device) I'm using directx8.

Share this post


Link to post
Share on other sites
Advertisement
If you are looking to render to each of the frames in the SplitterWnd, you may not want to create a new device for each View. You'll want to create a Swap Chain for each View. This lets you share one Direct3D8 Device with each view you want to render. You can create a new Swap Chain by calling CreateAdditionSwapChain() on your Direct3D8 Device.

The Swap Chain acts like a rendering surface, so you can access the back-buffer and set it as your rendering target and draw your scene. Hope this helps.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!