About D3d8&SplitterWnd

Started by
1 comment, last by grasshopa55 19 years, 8 months ago
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.
Advertisement
You just do the same as when rendering in a "normal" windowed mode.

Just set the HWND of the pane (GetPane) inside the presentation parameters. And act on resizing.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

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.
-----------------------------kevin@mayday-anime.comhttp://www.mayday-anime.com

This topic is closed to new replies.

Advertisement