Since DirectX plays a role in all kinds of multimedia functions, an updated version of DirectX can also improve your experience in things like watching videos. You can expect improvements in FPS and animations in your games. I also have to figure out how the new found XAML power can be harnessed from cocos.The main reason to update DirectX is that a newer version enhances the gaming experience on your Windows 11 PC. I still have to solve the problem that some classes do calls to sharedApplication (like ccmenu) but that results in a crash as ccapplication is not initialized (small problem to tackle). In de render() function you can call ccdirector::main loop() (at least that appears to be working). Then in the DirectXPage.cpp do the things that you would do in appdelegate.cpp (create director, create eaglview, load scene). ![]() Then modify the cocos file directXRender.cpp file to be similar to the template file DirectXBase (especially the part where the swapchain is linked to the panel!). Make sure it compiles and runs with just the cocos files included in the project. So create a new project from the XAML/DirectX template, include all cocos2d files, make sure all compiler options are the same, include all link libraries, etc. Easiest thing to do would be to follow the steps from my first post. The project also uses hard references to files on my disk so it would not compile. May I have a copy of your project so I can figure out how to make my own project work? ![]() ![]() I am looking for cocos2d-x + xaml solution too, and I found that you’ve done pretty well on it…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |