MFC Swapchain

Problems building or running the engine, queries about how to use features etc.
xzoowy
Gnoblar
Posts: 12
Joined: Fri Jan 14, 2005 9:43 pm

MFC Swapchain

Post 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 ?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post 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.
xzoowy
Gnoblar
Posts: 12
Joined: Fri Jan 14, 2005 9:43 pm

Post 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 ?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post 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.