Page 1 of 1

MFC Swapchain

Posted: Thu Jan 27, 2005 8:38 pm
by xzoowy
Hi,

Ive installed the patch that enables the Swapchain support for D3D9 rendering on my Ogre 0.15.2 release then rebuild Ogre without any problems.

But when i incorporate some Swapchain code in my application i always get link errors.

Code: Select all

mSwapManager = new D3D9SwapChainManager();
MFC_test error LNK2019: unresolved external symbol "public: __thiscall Ogre::D3D9SwapChainManager::D3D9SwapChainManager(void)" (??0D3D9SwapChainManager@Ogre@@QAE@XZ) referenced in function "public: bool __thiscall CMFC_testView::initOgre(void)" (?initOgre@CMFC_testView@@QAE_NXZ)

Also does anyone have some simple example of utilisation of SwapChain in their application ?

Posted: Fri Jan 28, 2005 2:24 pm
by sinbad
Use Azathoth when it comes out next week. I incorporated swap chain support a week or so ago, not using that patch though since it was far too manual to enable and propagated D3D-specific terms (like 'swap chain') to the interface which is wrong.

In Azathoth all you have to do is call createRenderWindow more than once. The D3D plugin figures out when it should be a swap chain or not internally.

Posted: Fri Jan 28, 2005 11:21 pm
by xzoowy
Thats great news, cant wait to try it out.

Any idea if there will be an eventual multi-window support for OpenGL or will this remain a D3D feature only ?

Posted: Sat Jan 29, 2005 3:38 pm
by sinbad
As I understand it there already is if you use the GLX platform manager. The SDL platform manager can only handle one window since SDL is designed one window.