Is there anyone that can help me figure out how to create a Cocos2d-X project using SwapChainBackgroundPanel in order to combine DirectX and XAML? It appears that using XAML is about the only way of getting the soft keyboard to show on tablets (so all my custom input boxes are useless on Windows 8 tablets without keyboards).
well, I’ve created a new project based upon the XAML/Direct2D template and included all Cocos2d-x sources in the project.
In DirectXPage.cpp I did the following:
- create DirextXRender (the cocos2d renderer)
- create the EAGLView
- initialize the director
- create and run HelloWorld
- call the CCDirector::mainloop on every call to Render()
I also modified DirectXRender a bit to be more similar to the DirextXBase renderer (included in the template project). The program compiles and runs but the DIrectX screen (SwapChainBackgroundPanel) remains black. Driving me nuts!